/**
 * WordPress-specific CSS adjustments
 * These styles work with the existing design system
 */

/* Admin Bar adjustments */
.admin-bar .nav {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .nav {
		top: 46px;
	}
}

/* Contact Form 7 Styling */
.wpcf7 {
	background: var(--panel);
	border: 1px solid var(--line);
	padding: 26px;
	border-radius: 8px;
}

.wpcf7-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.wpcf7-form p {
	display: grid;
	gap: 6px;
	margin: 0;
}

.wpcf7-form p.full-width,
.wpcf7-form .wpcf7-submit {
	grid-column: 1 / -1;
}

.wpcf7-form label {
	font-size: 11px;
	color: #c4cdc4;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	background: #0e110f;
	border: 1px solid #3a433c;
	color: white;
	padding: 13px;
	border-radius: 4px;
	outline: none;
	font-family: inherit;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
	border-color: var(--lime);
}

.wpcf7-form textarea {
	min-height: 90px;
	resize: vertical;
}

.wpcf7-form .wpcf7-submit {
	background: var(--lime);
	color: #11170d;
	padding: 13px 19px;
	border: 0;
	border-radius: 4px;
	font-weight: 850;
	font-size: 13px;
	cursor: pointer;
	transition: .2s;
	font-family: inherit;
}

.wpcf7-form .wpcf7-submit:hover {
	transform: translateY(-2px);
	filter: brightness(1.04);
}

.wpcf7-response-output {
	grid-column: 1 / -1;
	margin: 10px 0 0;
	padding: 12px;
	border-radius: 4px;
	font-size: 13px;
	border: 1px solid var(--line);
}

.wpcf7-response-output.wpcf7-validation-errors {
	background: rgba(255, 100, 100, 0.1);
	border-color: rgba(255, 100, 100, 0.3);
	color: #ff9999;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
	background: rgba(255, 198, 41, 0.1);
	border-color: var(--lime);
	color: var(--lime);
}

.wpcf7-not-valid-tip {
	color: #ff9999;
	font-size: 11px;
	margin-top: 5px;
}

.wpcf7 span.wpcf7-list-item {
	margin: 0 0 5px 0;
}

/* Mobile responsiveness for CF7 */
@media (max-width: 540px) {
	.wpcf7-form {
		grid-template-columns: 1fr;
	}
	
	.wpcf7-form p.full-width,
	.wpcf7-form .wpcf7-submit {
		grid-column: auto;
	}
}

/* WordPress default styles reset */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	color: var(--white);
	margin: 30px 0 15px;
}

.entry-content p {
	margin-bottom: 20px;
}

.entry-content a {
	color: var(--lime);
	text-decoration: underline;
}

.entry-content a:hover {
	text-decoration: none;
}

.entry-content ul,
.entry-content ol {
	margin: 20px 0;
	padding-left: 30px;
}

.entry-content li {
	margin-bottom: 10px;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.entry-content blockquote {
	border-left: 3px solid var(--lime);
	padding-left: 20px;
	margin: 30px 0;
	color: var(--muted);
	font-style: italic;
}

/* Pagination styles */
.pagination {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 50px;
}

.pagination a,
.pagination .current {
	background: var(--panel);
	border: 1px solid var(--line);
	color: var(--white);
	padding: 10px 16px;
	border-radius: 4px;
	text-decoration: none;
	transition: .2s;
}

.pagination a:hover {
	border-color: var(--lime);
	color: var(--lime);
}

.pagination .current {
	background: var(--lime);
	color: #11170d;
	border-color: var(--lime);
}

/* Elementor inner pages: full width, keep widget colors from Elementor */
.pcube-elementor-page {
	background: transparent;
}

.pcube-elementor-page .elementor-widget-heading .elementor-heading-title {
	max-width: none;
	font-family: inherit;
}

/* Fix Elementor button styling conflicts */
.elementor-widget-button .elementor-button {
	font-family: inherit;
}

/* Ensure menu links work */
.links a {
	cursor: pointer;
}

/* Custom logo override */
.custom-logo {
	width: 142px;
	height: auto;
	max-height: 54px;
	object-fit: contain;
}

/*
 * If Header Footer Elementor still injects #masthead, collapse the old
 * 90px+90px padded header into a normal bar until PHP filters are live.
 */
#masthead {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(4, 48, 130, 0.97);
}

.admin-bar #masthead {
	top: 32px;
}

#masthead .elementor-section,
#masthead .e-con {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	min-height: 0 !important;
	height: auto !important;
}

#masthead .elementor-container,
#masthead .elementor-widget-wrap,
#masthead .e-con-inner {
	min-height: 76px !important;
	align-items: center !important;
}

#masthead img {
	max-height: 54px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
}

header.nav {
	min-height: 0;
	height: auto;
}

header.nav .navinner {
	height: 76px;
	min-height: 76px;
	max-height: 76px;
}

header.nav button.menu {
	background: none;
	border: 1px solid var(--line);
	color: #fff;
	padding: 8px 12px;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}

.pcube-classic-page {
	padding: 80px 0;
}

.pcube-classic-inner {
	max-width: 850px;
}

.pcube-classic-thumb {
	margin-bottom: 30px;
}

.pcube-classic-thumb img {
	border-radius: 8px;
	width: 100%;
	height: auto;
}

.pcube-classic-title {
	font-size: clamp(35px, 4vw, 50px);
	line-height: 1.1;
	letter-spacing: -0.05em;
	margin: 0 0 20px;
	color: var(--white);
}

.pcube-classic-page .entry-content {
	color: var(--muted);
	line-height: 1.8;
}

@media screen and (max-width: 782px) {
	.admin-bar #masthead {
		top: 46px;
	}
}

@media (max-width: 1100px) {
	.links {
		gap: 16px;
		font-size: 12px;
	}
}

@media (max-width: 850px) {
	header.nav .links {
		background: #061f55;
		z-index: 30;
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	}

	header.nav .links a,
	header.nav .links .nav-email {
		padding: 8px 0;
	}
}
