/*
Theme Name: Houston Gulf Electric
Theme URI: https://example.com
Author: Houston Gulf Electric
Author URI: https://example.com
Description: Responsive single-page WordPress starter theme for Houston Gulf Electric, a local League City electrical company serving Greater Houston.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: houston-gulf-electric
*/

:root {
	--ink: #122033;
	--muted: #526275;
	--line: #dce5ee;
	--panel: #ffffff;
	--soft: #f4f8fb;
	--navy: #020d1d;
	--blue: #0b76d8;
	--blue-dark: #063764;
	--blue-soft: #e7f3ff;
	--gold: #f6b51f;
	--green: #1b7f5a;
	--shadow: 0 18px 45px rgba(18, 32, 51, 0.12);
	--radius: 8px;
	--header-height: 72px;
	font-family: Arial, Helvetica, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
}

body {
	margin: 0;
	color: var(--ink);
	background: #ffffff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

body.modal-open {
	overflow: hidden;
}

img {
	display: block;
	width: 100%;
	height: auto;
}

a {
	color: inherit;
}

button,
input,
textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 3px;
}

.container {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
}

.skip-link {
	position: fixed;
	left: 16px;
	top: 16px;
	z-index: 1000;
	padding: 10px 14px;
	color: #ffffff;
	background: var(--blue-dark);
	border-radius: var(--radius);
	transform: translateY(-140%);
	transition: transform 180ms ease;
}

.skip-link:focus {
	transform: translateY(0);
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	min-height: var(--header-height);
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 10px 30px rgba(2, 13, 29, 0.06);
	backdrop-filter: blur(14px);
}

body.admin-bar .site-header {
	top: 46px;
}

.header-inner {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	min-height: var(--header-height);
	gap: 12px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	min-width: 0;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 50px;
	overflow: hidden;
	background: #ffffff;
	border-radius: 5px;
}

.brand-mark img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.brand-text {
	display: grid;
	min-width: 0;
}

.brand-text strong {
	font-size: 1rem;
	line-height: 1.15;
}

.brand-text span {
	color: var(--muted);
	font-size: 0.8rem;
}

.nav-toggle {
	display: grid;
	gap: 4px;
	width: 42px;
	height: 42px;
	padding: 10px;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
	display: block;
	height: 2px;
	background: var(--ink);
	border-radius: 999px;
}

.site-nav {
	position: fixed;
	left: 16px;
	right: 16px;
	top: calc(var(--header-height) + 10px);
	display: none;
	padding: 12px;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

body.admin-bar .site-nav {
	top: calc(var(--header-height) + 56px);
}

.site-nav.is-open {
	display: grid;
}

.site-nav a {
	padding: 12px;
	color: var(--ink);
	text-decoration: none;
	border-radius: 6px;
	font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	background: var(--blue-soft);
	color: var(--blue-dark);
}

.header-call {
	display: none;
	padding: 10px 14px;
	color: var(--navy);
	background: linear-gradient(180deg, #ffd34f 0%, var(--gold) 100%);
	border-radius: var(--radius);
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.section {
	padding: 64px 0;
}

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

.section-blue {
	color: #ffffff;
	background:
		linear-gradient(135deg, rgba(2, 13, 29, 0.98) 0%, rgba(6, 55, 100, 0.96) 52%, rgba(11, 118, 216, 0.92) 100%),
		radial-gradient(circle at 88% 10%, rgba(11, 118, 216, 0.46), transparent 34%);
}

.hero {
	position: relative;
	overflow: hidden;
	color: #ffffff;
	padding: 48px 0 64px;
	background:
		linear-gradient(135deg, rgba(2, 13, 29, 0.98) 0%, rgba(4, 25, 48, 0.96) 54%, rgba(8, 75, 145, 0.92) 100%),
		radial-gradient(circle at top right, rgba(11, 118, 216, 0.42), transparent 34%);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.32;
	background-image:
		linear-gradient(115deg, transparent 0 55%, rgba(49, 150, 255, 0.25) 55% 56%, transparent 56%),
		radial-gradient(circle at 18px 18px, rgba(49, 150, 255, 0.24) 0 2px, transparent 3px);
	background-size: 260px 160px, 36px 36px;
	pointer-events: none;
}

.hero > .container {
	position: relative;
	z-index: 1;
}

.hero-grid,
.split,
.areas-grid,
.contact-grid {
	display: grid;
	gap: 32px;
}

.eyebrow {
	margin: 0 0 12px;
	color: var(--blue);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero .eyebrow {
	color: var(--gold);
}

.section-blue .eyebrow {
	color: #bfe0ff;
}

h1,
h2,
h3,
p {
	overflow-wrap: break-word;
}

h1,
h2,
h3 {
	margin: 0;
	line-height: 1.1;
	letter-spacing: 0;
}

h1 {
	max-width: 760px;
	font-size: clamp(2.2rem, 11vw, 4.6rem);
}

h2 {
	font-size: clamp(1.8rem, 7vw, 3rem);
}

h3 {
	font-size: 1.2rem;
}

.hero-lead,
.section-heading p,
.split p,
.areas-grid p,
.contact-grid p {
	color: var(--muted);
	font-size: 1.05rem;
}

.hero-lead {
	color: #d8e8f8;
}

.section-blue p {
	color: #e6f2ff;
}

.hero-actions {
	display: grid;
	gap: 12px;
	margin: 28px 0;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 13px 18px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-weight: 800;
	text-decoration: none;
	transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	color: #ffffff;
	background: var(--blue);
}

.btn-primary:hover {
	background: var(--blue-dark);
}

.btn-secondary {
	color: var(--blue-dark);
	background: #ffffff;
	border-color: var(--line);
}

.btn-secondary:hover {
	border-color: var(--blue);
	background: var(--blue-soft);
}

.hero .btn-primary {
	color: var(--navy);
	background: linear-gradient(180deg, #ffd34f 0%, var(--gold) 100%);
}

.hero .btn-primary:hover {
	background: linear-gradient(180deg, #ffe082 0%, #f6b51f 100%);
}

.hero .btn-secondary {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.32);
}

.hero .btn-secondary:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.55);
}

.trust-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.trust-list li {
	position: relative;
	padding-left: 28px;
	color: var(--ink);
	font-weight: 700;
}

.hero .trust-list li {
	color: #ffffff;
}

.trust-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 14px;
	height: 14px;
	background: var(--gold);
	border: 3px solid #ffffff;
	border-radius: 999px;
	box-shadow: 0 0 0 1px rgba(18, 32, 51, 0.12);
}

.hero-panel {
	display: grid;
	gap: 16px;
}

.brand-showcase {
	margin: 0;
	overflow: hidden;
	background: var(--navy);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.brand-showcase img {
	width: 100%;
	min-height: 210px;
	object-fit: cover;
	object-position: 36% center;
}

.status-card,
.hero-stats,
.service-card,
.review-card,
.contact-form,
.modal-panel {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.status-card {
	padding: 22px;
}

.status-card p {
	margin: 0 0 6px;
	color: var(--muted);
}

.status-card strong {
	display: block;
	font-size: 1.35rem;
	line-height: 1.25;
}

.status-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-bottom: 16px;
	background: var(--green);
	border-radius: 999px;
	box-shadow: 0 0 0 8px rgba(27, 127, 90, 0.12);
}

.hero-stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	overflow: hidden;
	background: var(--line);
}

.hero .hero-stats {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.18);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.hero-stats div {
	padding: 18px;
	background: #ffffff;
}

.hero .hero-stats div {
	background: rgba(2, 13, 29, 0.74);
}

.hero-stats strong {
	display: block;
	color: var(--blue);
	font-size: 2rem;
	line-height: 1;
}

.hero .hero-stats strong {
	color: var(--gold);
}

.hero-stats span {
	display: block;
	margin-top: 6px;
	color: var(--muted);
	font-weight: 700;
}

.hero .hero-stats span {
	color: #dbe9f8;
}

.copy-stack {
	display: grid;
	gap: 18px;
}

.copy-stack p {
	margin: 0;
}

.feature-grid,
.service-grid,
.gallery-grid,
.review-shell {
	display: grid;
	gap: 16px;
}

.feature-grid article {
	padding: 18px;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.feature-grid p,
.service-card p,
.review-card p {
	margin: 10px 0 0;
	color: var(--muted);
}

.section-heading {
	display: grid;
	gap: 12px;
	max-width: 760px;
	margin-bottom: 28px;
}

.section-heading p {
	margin: 0;
}

.service-card {
	display: grid;
	gap: 14px;
	padding: 22px;
	box-shadow: none;
}

.service-card-featured {
	border-color: rgba(11, 102, 195, 0.35);
	background: linear-gradient(180deg, #ffffff, var(--blue-soft));
}

.icon-circle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--blue-dark);
	background: var(--blue-soft);
	border-radius: 999px;
	font-weight: 900;
	font-size: 0.85rem;
}

.service-card-featured .icon-circle {
	color: var(--navy);
	background: var(--gold);
}

.service-card a {
	color: var(--blue-dark);
	font-weight: 800;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.area-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.area-list li {
	padding: 12px 14px;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--radius);
	font-weight: 800;
}

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

.gallery-item {
	position: relative;
	min-height: 240px;
	padding: 0;
	overflow: hidden;
	color: #ffffff;
	background: #d8e2eb;
	border: 0;
	border-radius: var(--radius);
	text-align: left;
}

.gallery-item img {
	height: 100%;
	min-height: 240px;
	object-fit: cover;
	transition: transform 220ms ease;
}

.gallery-item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(18, 32, 51, 0.82));
}

.gallery-item span {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 1;
	font-weight: 900;
}

.gallery-item:hover img {
	transform: scale(1.04);
}

.review-card {
	padding: 22px;
	box-shadow: none;
}

.review-card p {
	margin: 0 0 12px;
	color: var(--ink);
	font-size: 1.05rem;
}

.review-card span,
.legacy-note {
	color: var(--muted);
	font-weight: 700;
}

.legacy-note {
	margin: 0;
}

.contact-section {
	background:
		linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
}

.contact-links {
	display: grid;
	gap: 10px;
	margin-top: 22px;
}

.contact-link {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	color: var(--blue-dark);
	font-weight: 900;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.contact-form,
.modal-form {
	display: grid;
	gap: 16px;
}

.contact-form {
	padding: 22px;
}

.form-field {
	display: grid;
	gap: 7px;
}

label {
	font-weight: 800;
}

input,
textarea {
	width: 100%;
	padding: 12px 13px;
	color: var(--ink);
	background: #ffffff;
	border: 1px solid #b8c5d3;
	border-radius: var(--radius);
}

textarea {
	resize: vertical;
}

.form-success {
	margin: 0;
	padding: 12px;
	color: #0f5132;
	background: #dff5e8;
	border-radius: var(--radius);
	font-weight: 700;
}

.content-entry {
	padding: 24px 0;
	border-top: 1px solid var(--line);
}

.content-entry h2 a {
	color: var(--blue-dark);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.site-footer {
	padding: 28px 0 92px;
	color: #dce9f6;
	background: var(--navy);
}

.footer-inner {
	display: grid;
	gap: 10px;
}

.footer-inner p {
	margin: 0;
}

.footer-inner a {
	color: #ffffff;
	font-weight: 900;
}

.floating-call {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	color: var(--navy);
	background: linear-gradient(180deg, #ffd34f 0%, var(--gold) 100%);
	border-radius: var(--radius);
	box-shadow: 0 16px 32px rgba(8, 79, 152, 0.28);
	font-weight: 900;
	text-decoration: none;
}

.modal,
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: grid;
	place-items: center;
	padding: 18px;
}

.modal[hidden],
.lightbox[hidden] {
	display: none;
}

.modal-backdrop,
.lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 20, 32, 0.68);
}

.modal-panel {
	position: relative;
	z-index: 1;
	width: min(560px, 100%);
	max-height: calc(100vh - 36px);
	padding: 22px;
	overflow: auto;
}

.modal-close,
.lightbox-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	color: var(--ink);
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 1.65rem;
	line-height: 1;
}

.modal-content h2,
.modal-success h2 {
	margin-bottom: 18px;
}

.modal-success p {
	color: var(--muted);
}

.lightbox-panel {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	color: #ffffff;
}

.lightbox-panel img {
	max-height: 74vh;
	object-fit: contain;
	background: #0f1720;
	border-radius: var(--radius);
}

.lightbox-panel p {
	margin: 12px 52px 0;
	text-align: center;
	font-weight: 800;
}

.lightbox-control {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 54px;
	color: var(--ink);
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 2rem;
	transform: translateY(-50%);
}

.lightbox-prev {
	left: 10px;
}

.lightbox-next {
	right: 10px;
}

@media (min-width: 560px) {
	.hero-actions {
		grid-template-columns: max-content max-content;
	}

	.hero-stats {
		grid-template-columns: repeat(3, 1fr);
	}

	.gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-inner {
		grid-template-columns: 1fr auto;
		align-items: center;
	}
}

@media (min-width: 783px) {
	body.admin-bar .site-header {
		top: 32px;
	}

	body.admin-bar .site-nav {
		top: calc(var(--header-height) + 42px);
	}
}

@media (min-width: 840px) {
	.header-inner {
		grid-template-columns: auto 1fr auto;
	}

	.nav-toggle {
		display: none;
	}

	.site-nav {
		position: static;
		display: flex;
		justify-content: center;
		gap: 4px;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	body.admin-bar .site-nav {
		top: auto;
	}

	.site-nav a {
		padding: 10px;
		font-size: 0.92rem;
	}

	.header-call {
		display: inline-flex;
	}

	.hero {
		padding: 86px 0 92px;
	}

	.hero-grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
		align-items: center;
	}

	.split,
	.areas-grid,
	.contact-grid {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		align-items: start;
	}

	.service-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.feature-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.floating-call {
		display: none;
	}

	.site-footer {
		padding-bottom: 28px;
	}
}

@media (min-width: 1040px) {
	.section {
		padding: 88px 0;
	}

	.gallery-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.gallery-item,
	.gallery-item img {
		min-height: 300px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
