/* Breakpoint aligned with Divi (980px) */
.ef-desktop-only {
	display: none !important;
}

@media (min-width: 981px) {
	.cai-header__actions.ef-desktop-only {
		display: flex !important;
	}

	.cai-nav.ef-desktop-only {
		display: flex !important;
	}

	.ef-mobile-only {
		display: none !important;
	}
}

/* Header — light bar fixed at 129px */
.cai-header {
	overflow: visible;
}

/* Same content width for top bar + logo/nav/CTA so left edges align */
.cai-header > .container-brand,
.ef-announce > .container-brand {
	max-width: 80rem; /* match .container-brand / max-w-7xl */
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	padding-left: 2rem;
	padding-right: 2rem;
	box-sizing: border-box;
	overflow: visible;
}

.cai-header__bar {
	height: 129px !important;
	min-height: 129px !important;
	max-height: 129px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	box-sizing: border-box;
	gap: 1.25rem;
	min-width: 0;
	align-items: center !important;
}

.cai-header__brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.cai-header__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.cai-nav {
	flex: 1 1 auto;
	min-width: 0;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.cai-nav__list {
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 0.15rem 0.35rem;
	margin: 0;
	padding: 0;
	width: auto;
	max-width: 100%;
}

.ef-header-cta {
	white-space: nowrap;
}

img.ef-logo {
	display: block;
	height: 100px;
	width: auto;
	max-width: min(200px, 55vw);
	object-fit: contain;
	object-position: left center;
}

@media (min-width: 640px) {
	img.ef-logo {
		height: 100px;
		max-width: 200px;
	}
}

img.ef-logo--footer {
	height: 5rem;
	max-width: 220px;
}

/* Buttons: 16px / 500 / shared padding so all CTAs match */
.btn-primary,
.btn-outline,
a.btn-primary,
a.btn-outline {
	display: inline-block !important;
	font-family: Roboto, Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.7 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	text-align: center;
	padding: 13px 33px !important;
	border-radius: 10px !important;
	border-width: 2px !important;
	border-style: solid !important;
	box-sizing: border-box !important;
	min-height: 0 !important;
}

.btn-primary,
a.btn-primary {
	background: #b42b2e !important;
	border-color: transparent !important;
	color: #eeece5 !important;
}

.btn-primary:hover,
a.btn-primary:hover {
	background: #8f2224 !important;
	color: #eeece5 !important;
}

.btn-outline,
a.btn-outline {
	background: transparent !important;
	border-color: #2a2a2a !important;
	color: #2a2a2a !important;
}

.btn-outline:hover,
a.btn-outline:hover {
	background: rgba(42, 42, 42, 0.06) !important;
}

/* Charcoal primary + cream outline on dark / photo bands (live hero + CTAs) */
.ef-home-hero .btn-primary,
.ef-section--photo .btn-primary,
.ef-cta-copy .btn-primary,
.ef-countertops-cta .btn-primary,
.btn-primary--charcoal {
	background: #2a2a2a !important;
	border-color: transparent !important;
	color: #eeece5 !important;
}

.ef-home-hero .btn-primary:hover,
.ef-section--photo .btn-primary:hover,
.ef-cta-copy .btn-primary:hover,
.ef-countertops-cta .btn-primary:hover,
.btn-primary--charcoal:hover {
	background: #1a1a1a !important;
}

.ef-btn-on-dark,
.ef-home-hero .btn-outline,
.ef-section--photo .btn-outline,
.ef-cta-copy .btn-outline,
.ef-countertops-cta .btn-outline {
	background: transparent !important;
	border-color: #e1dfd5 !important;
	color: #eeece5 !important;
}

.ef-btn-on-dark:hover,
.ef-home-hero .btn-outline:hover,
.ef-section--photo .btn-outline:hover,
.ef-cta-copy .btn-outline:hover,
.ef-countertops-cta .btn-outline:hover {
	background: rgba(225, 223, 213, 0.12) !important;
	border-color: #e1dfd5 !important;
	color: #eeece5 !important;
}

.ef-mobile-cta a {
	border-radius: 10px !important;
	padding: 13px 33px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.7 !important;
}

.ef-announce {
	background: #2a2a2a;
	color: #fff;
	text-align: left;
	font-size: 0.8125rem;
	font-weight: 500;
	padding: 0.65rem 0;
	line-height: 1.4;
}

/* Nav: red underline only — no pink hover box */
.cai-nav .ef-nav-item {
	position: relative;
	flex: 0 0 auto;
}

.cai-nav .ef-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.4rem 0.7rem;
	font-size: 15px;
	font-weight: 400;
	color: #2a2a2a;
	text-decoration: none;
	background: transparent !important;
	border-radius: 0;
	border-bottom: 2px solid transparent;
	transition: border-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}

.cai-nav .ef-nav-chevron {
	flex-shrink: 0;
	display: block;
	opacity: 0.85;
	transition: transform 0.15s ease;
}

.ef-nav-item--has-children:hover > .ef-nav-link .ef-nav-chevron,
.ef-nav-item--has-children:focus-within > .ef-nav-link .ef-nav-chevron {
	transform: rotate(180deg);
}

.cai-nav .ef-nav-link:hover,
.cai-nav .ef-nav-link:focus-visible,
.cai-nav .ef-nav-link.ef-nav-active {
	color: #2a2a2a;
	background: transparent !important;
	border-bottom-color: #b42b2e;
}

.ef-nav-sub {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	min-width: 14rem;
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid #d9d6ce;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(0.35rem);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

/* Keep last menus from overflowing viewport */
.cai-nav__list > .ef-nav-item:nth-last-child(-n+2) .ef-nav-sub {
	left: auto;
	right: 0;
}

.ef-nav-item--has-children:hover > .ef-nav-sub,
.ef-nav-item--has-children:focus-within > .ef-nav-sub {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.ef-nav-sub__link {
	display: block;
	padding: 0.55rem 1rem;
	color: #2a2a2a;
	font-size: 15px;
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
}

.ef-nav-sub__link:hover,
.ef-nav-sub__link:focus-visible,
.ef-nav-sub__link.ef-nav-active {
	color: #b42b2e;
	background: #f7f5f0;
}

/* Mobile accordion groups */
.ef-mobile-group__toggle {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 0;
	border: 0;
	background: transparent;
	color: #2a2a2a;
	font: inherit;
	font-weight: 550;
	text-align: left;
	cursor: pointer;
}

.ef-mobile-group__toggle svg {
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.ef-mobile-group.is-open .ef-mobile-group__toggle svg {
	transform: rotate(180deg);
}

.ef-mobile-group__panel {
	padding: 0 0 0.5rem 0.75rem;
	border-left: 2px solid #d9d6ce;
	margin-left: 0.25rem;
}

.ef-mobile-group__panel .cai-nav__mobile-link {
	font-size: 15px;
	font-weight: 400;
}

.cai-nav__mobile-link,
.ef-mobile-group__toggle {
	font-size: 15px;
	font-weight: 400;
}

/* Index hub */
.ef-hub {
	padding: 3rem 0 4rem;
	background: #eeece5;
	min-height: 60vh;
}

.ef-hub h1 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	color: #2a2a2a;
}

.ef-hub__lead {
	margin: 0 0 2rem;
	color: #5c5c5c;
	max-width: 40rem;
	line-height: 1.6;
}

.ef-hub-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #d9d6ce;
	border-radius: 0.5rem;
	overflow: hidden;
	font-size: 0.9rem;
}

.ef-hub-table th,
.ef-hub-table td {
	padding: 0.7rem 1rem;
	text-align: left;
	border-bottom: 1px solid #e8e5dc;
}

.ef-hub-table th {
	background: #f7f5f0;
	font-weight: 600;
	color: #2a2a2a;
}

.ef-hub-table tr:last-child td {
	border-bottom: 0;
}

.ef-hub-table a {
	color: #b42b2e;
	font-weight: 500;
}

.ef-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
}

.ef-badge--wip {
	background: #e8f0fe;
	color: #1a56db;
}

.ef-badge--pending {
	background: #f3f1ec;
	color: #5c5c5c;
}

.ef-badge--ready {
	background: #e6f4ec;
	color: #1a5c38;
}

.ef-stub {
	padding: 5rem 0;
	background: #eeece5;
	text-align: center;
}

.ef-stub h1 {
	margin: 0 0 0.75rem;
	font-size: 2rem;
	color: #2a2a2a;
}

.ef-stub p {
	margin: 0 auto 1.5rem;
	max-width: 28rem;
	color: #5c5c5c;
	line-height: 1.6;
}

/* ─── Footer (live dark layout) ─── */
.ef-footer {
	background: #2a2a2a;
	color: #eeece5;
	margin-top: auto;
}

.ef-footer__inner {
	padding: 3rem 1.25rem 2rem;
}

@media (min-width: 980px) {
	.ef-footer__inner {
		padding: 3.75rem 1.25rem 2.25rem;
	}
}

/* Brand/CTA left + link columns right */
.ef-footer__main {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 980px) {
	.ef-footer__main {
		grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.6fr);
		gap: 3rem;
		align-items: start;
	}
}

.ef-footer__logo {
	display: inline-block;
	margin-bottom: 1.25rem;
	text-decoration: none;
}

.ef-footer__logo img {
	display: block;
	height: 4.25rem;
	width: auto;
	max-width: min(240px, 70vw);
	object-fit: contain;
	object-position: left center;
}

.ef-footer__cta-title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 2.4vw, 1.85rem);
	font-weight: 600;
	line-height: 1.25;
	color: #fff;
}

.ef-footer__cta-text {
	margin: 0 0 1.25rem;
	max-width: 26rem;
	font-size: 0.95rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
}

.ef-footer__cta-btn {
	display: inline-flex;
}

.ef-footer__links {
	display: grid;
	gap: 2rem 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 560px) {
	.ef-footer__links {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 980px) {
	.ef-footer__links {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem 2rem;
	}
}

.ef-footer__heading {
	margin: 0 0 0.85rem;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
}

.ef-footer__heading--spaced {
	margin-top: 1.75rem;
}

.ef-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ef-footer__list li + li {
	margin-top: 0.45rem;
}

.ef-footer__list a {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	font-size: 0.9rem;
	line-height: 1.4;
}

.ef-footer__list a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ef-footer__phone {
	margin: 0;
}

.ef-footer__phone a {
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}

.ef-footer__phone a:hover {
	text-decoration: underline;
}

.ef-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	list-style: none;
	margin: 1.1rem 0 0;
	padding: 0;
}

.ef-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	color: #fff;
	text-decoration: none;
}

.ef-footer__social a:hover {
	opacity: 0.8;
}

.ef-footer__partner {
	display: inline-block;
	margin-top: 1.5rem;
}

.ef-footer__partner img {
	display: block;
	height: 2.75rem;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

.ef-footer__legal {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

@media (min-width: 768px) {
	.ef-footer__legal {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
	}
}

.ef-footer__legal p {
	margin: 0;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.75);
}

.ef-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ef-footer__legal-links a {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.8rem;
	text-decoration: none;
}

.ef-footer__legal-links a:hover {
	color: #fff;
	text-decoration: underline;
}

/* Live Divi post bodies (flooring product pages) — scope + shield chrome */
.ef-live-page .cai-header,
.ef-live-page .cai-header *,
.ef-live-page .ef-footer,
.ef-live-page .ef-footer * {
	box-sizing: border-box;
}

.ef-live-main {
	width: 100%;
	overflow-x: clip;
}

.ef-live-main .et_pb_section {
	clear: both;
}

.ef-live-main img {
	max-width: 100%;
	height: auto;
}

/* Waypoint modules start hidden on live; show them in the proto */
.ef-live-main .et-waypoint {
	opacity: 1 !important;
}

