/*
Theme Name: Intex Windows & Doors
Theme URI: https://www.intexwindows.com/
Description: Custom child theme of Twenty Twenty-Five for Intex Windows & Doors, Glendale CA.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: intex
*/

/* ---------- Header ---------- */
.intex-topbar a { text-decoration: none; }
.intex-topbar a:hover { text-decoration: underline; }

.intex-header {
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 0 var(--wp--preset--color--accent-6), 0 6px 20px rgba(0, 0, 0, .04);
}
body.admin-bar .intex-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .intex-header { top: 0; position: relative; } }

.intex-header .wp-block-site-logo img { display: block; }
.intex-header .wp-block-navigation { font-weight: 600; }
.intex-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent-1); }
.intex-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--accent-6) !important;
	border-radius: 8px;
	padding: 6px 0;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
	min-width: 230px !important;
}
.intex-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 18px !important; font-weight: 500; }

@media (max-width: 600px) {
	.intex-topbar p:first-child { display: none; }
	.intex-topbar .wp-block-group { justify-content: center !important; }
	.intex-header .intex-logo img { width: 104px !important; }
	.intex-header-cta .wp-block-button__link { padding: .6rem 1rem; font-size: .9rem; }
}

/* No gaps between header, main and footer */
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Hero ---------- */
.intex-hero .wp-block-cover__inner-container { max-width: 1200px; }
.intex-hero h1 { text-wrap: balance; }
.intex-eyebrow {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-weight: 700;
}

/* ---------- Cards ---------- */
.intex-card {
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
	height: 100%;
}
.intex-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .10); }
.intex-card .wp-block-image { margin: 0; }
.intex-card .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; }
.intex-card a { text-decoration: none; }
.intex-card .intex-card__link a { color: var(--wp--preset--color--accent-1); font-weight: 700; }

.intex-feature-icon {
	width: 48px; height: 48px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--accent-1);
	font-size: 22px; font-weight: 800;
	margin-bottom: 0;
}

.intex-brands p {
	font-weight: 800;
	letter-spacing: .02em;
	color: var(--wp--preset--color--accent-4);
	margin: 0;
	white-space: nowrap;
}

.intex-cities { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 24px; }
.intex-cities li { padding-left: 22px; position: relative; }
.intex-cities li::before { content: "✓"; position: absolute; left: 0; color: var(--wp--preset--color--accent-1); font-weight: 800; }
.intex-cities a { text-decoration: none; color: inherit; }
.intex-cities a:hover { color: var(--wp--preset--color--accent-1); }

/* ---------- Footer ---------- */
.intex-footer a { text-decoration: none; }
.intex-footer a:hover { text-decoration: underline; }
.intex-footer ul { list-style: none; padding: 0; margin: 0; }
.intex-footer li { margin-bottom: .5em; }

/* ---------- Fluent Forms ---------- */
.fluentform .ff-el-group { margin-bottom: 18px; }
.fluentform .ff-el-input--label label { font-weight: 600; font-size: .95rem; }
.fluentform .ff-el-form-control {
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 6px;
	padding: 12px 14px;
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.fluentform select.ff-el-form-control { height: auto; }
.fluentform .ff-el-form-control:focus {
	border-color: var(--wp--preset--color--accent-1);
	box-shadow: 0 0 0 3px var(--wp--preset--color--accent-2);
	outline: none;
}
.fluentform .ff-el-form-control::placeholder { color: #9aa0a6; }
.fluentform .ff-el-is-required.asterisk-right label::after { color: var(--wp--preset--color--accent-1); }
.fluentform .ff-btn-submit,
.fluentform .ff_btn_style {
	background: var(--wp--preset--color--accent-1) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 6px !important;
	padding: 15px 30px !important;
	font-weight: 700 !important;
	font-size: 1.05rem !important;
	font-family: inherit;
	cursor: pointer;
}
.fluentform .ff-btn-submit:hover { background: var(--wp--preset--color--contrast) !important; }
.ff-message-success {
	border: 1px solid #b7e1c1;
	background: #effaf2;
	border-radius: 10px;
	padding: 24px 28px;
	box-shadow: none;
}

/* ---------- Old Joomla content cleanup ---------- */
.entry-content img,
.wp-block-post-content img { max-width: 100%; height: auto; }
.wp-block-post-content table { max-width: 100%; border-collapse: collapse; }
.wp-block-post-content table td { vertical-align: top; padding: 6px; }
.wp-block-post-content iframe { max-width: 100%; }
.wp-block-post-content p:empty { display: none; }
@media (max-width: 781px) {
	.wp-block-post-content table,
	.wp-block-post-content tbody,
	.wp-block-post-content tr,
	.wp-block-post-content td { display: block; width: 100% !important; }
	.wp-block-post-content img { float: none !important; display: block; margin: 0 auto 1em; }
}
