/*
Theme Name: GeneratePress Delta Child
Theme URI: https://delta-packaging.com
Description: Delta Packaging child theme for GeneratePress — brand colors, header extras, footer.
Template: generatepress
Version: 1.3.4
*/

:root {
	--delta-blue: #003399;
	--delta-yellow: #F8F902;
	--delta-text: #4a4a4a;
}

body {
	font-family: 'Raleway', sans-serif;
	font-weight: 400;
	color: var(--delta-text);
}

/* Logo already carries the brand name — hide text site title */
.main-title, .site-description { display: none !important; }

/* ===== HEADER: two rows like live =====
   Row 1: logo left | yellow CTA + blue phone right
   Row 2 (below header): menu right-aligned with pipe dividers */

.site-header .inside-header {
	display: flex;
	align-items: center;
	max-width: 100%;
	padding: 14px 30px;
}

.site-header .site-branding-container {
	flex: 0 0 auto;
}

.site-header .delta-header-extras {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-left: auto;
	white-space: nowrap;
}

.site-header .site-logo img,
.site-header .custom-logo {
	max-height: 64px;
	width: auto;
}

.delta-header-cta {
	display: inline-block;
	background: var(--delta-yellow) !important;
	color: #222 !important;
	font-family: 'Raleway', sans-serif;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.02em;
	padding: 12px 20px;
	border-radius: 2px;
	text-decoration: none;
	border: none;
	line-height: 1.2;
}

.delta-header-cta:hover { background: #e8e901 !important; }

/* Converted fusion buttons: yellow CTA (was Avada global button style) */
.wp-block-button.theyellow .wp-block-button__link,
.wp-block-buttons .wp-block-button.theyellow .wp-block-button__link {
	background-color: var(--delta-yellow) !important;
	color: #222 !important;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.02em;
	padding: 12px 20px;
	border-radius: 2px;
}
.wp-block-button.theyellow .wp-block-button__link:hover { background-color: #e8e901 !important; }

/* Prevent fusion leftover word-break inside converted card headings */
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
}

.delta-header-phone {
	font-weight: 800;
	color: var(--delta-blue);
	text-decoration: none;
	font-size: 17px;
	white-space: nowrap;
}

.delta-header-phone:hover { color: #00226e; }

/* Nav row: below header, right-aligned, pipe dividers */
.nav-below-header .main-navigation .inside-navigation {
	text-align: center;
	justify-content: center;
	padding: 8px 30px;
}

.nav-below-header .main-navigation .main-nav > ul {
	display: flex;
	justify-content: center;
	align-items: center;
}

.main-navigation .main-nav ul li a {
	font-family: 'Raleway', sans-serif;
	font-weight: 500;
	font-size: 15px;
	color: #333;
	padding: 10px 18px;
	text-decoration: none;
}

.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li.current-menu-item > a {
	color: var(--delta-blue);
	background: none;
}

/* No divider before dropdown carets (GP default) */
.main-navigation .dropdown-menu-toggle {
	border-left: 0;
	padding-left: 6px;
}

/* fusion-core leftover divider on the legacy menu ID */
#menu-demo-menu > li > a span {
	border-left: 0 !important;
	padding-left: 0 !important;
}

.main-navigation ul ul {
	background: #fff;
	box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.main-navigation ul ul li a {
	color: #333;
	font-size: 13px;
	padding: 9px 16px;
	line-height: normal;
}

.main-navigation ul ul li a:hover {
	color: var(--delta-blue);
	background: #f2f5ff;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
	font-family: 'Raleway', sans-serif;
	font-weight: 800;
	color: #222;
}

/* Full-width blocks escape the content container (hero + full-bleed sections) */
.entry-content .wp-block-cover.alignfull,
.entry-content .wp-block-group.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

/* Homepage: hide page title (live has no title bar) */
.home .entry-header { display: none; }

/* ===== FOOTER ===== */

/* Blue Support band (rendered by child theme hook) */
.delta-support-band {
	background: var(--delta-blue);
	color: #fff;
	padding: 40px 0;
}

.delta-support-inner {
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 30px;
	display: flex;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}

.delta-support-text { flex: 1 1 560px; }

.delta-support-text h2 {
	color: #fff;
	font-size: 30px;
	font-weight: 800;
	margin: 0 0 6px 0;
}

.delta-support-text p {
	color: #fff;
	font-size: 19px;
	line-height: 1.55;
	margin: 0;
}

.delta-support-text a {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: rgba(255,255,255,0.5);
}

.delta-support-text a:hover { color: var(--delta-yellow); }

.delta-support-contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.delta-support-phone-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 50%;
	width: 58px;
	height: 58px;
}

.delta-support-number {
	color: #fff;
	font-size: 22px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.delta-support-cta {
	display: inline-block;
	background: var(--delta-yellow);
	color: #222;
	font-weight: 800;
	font-size: 14px;
	padding: 12px 20px;
	border-radius: 2px;
	text-decoration: none;
	white-space: nowrap;
}

.delta-support-cta:hover { background: #e8e901; }

/* Widget area: white, blue headings, chevron quick links */
.footer-widgets {
	background: #fff;
	padding: 40px 0 24px;
	font-size: 14px;
}

.site-footer .widget-title {
	color: var(--delta-blue);
	font-weight: 800;
	font-size: 17px;
	margin-bottom: 18px;
}

.site-footer .footer-widgets a {
	color: #44546a;
	text-decoration: none;
}

.site-footer .footer-widgets a:hover { color: var(--delta-blue); }

.footer-widgets .widget_nav_menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-widgets .widget_nav_menu ul li {
	padding: 0;
	margin-bottom: 0;
	line-height: 1.55;
}

.footer-widgets .widget_nav_menu ul li a {
	display: inline-block;
	padding: 0;
}

.footer-widgets .widget_nav_menu ul li a {
	font-size: 14px;
}

.footer-widgets .widget-title {
	font-size: 16px;
	margin-bottom: 14px;
}

.footer-widgets .widget_nav_menu ul li a:before {
	content: "\203A";
	color: var(--delta-blue);
	font-weight: 800;
	margin-right: 9px;
}

.site-info {
	background: var(--delta-blue);
	color: #fff;
	text-align: center;
	font-size: 13px;
	padding: 16px 0;
}

.site-info, .site-info a {
	color: #fff !important;
}

/* Mobile */
@media (max-width: 768px) {
	.delta-header-extras { gap: 12px; }
	.delta-header-phone { font-size: 14px; }
	.delta-header-cta { font-size: 12px; padding: 9px 13px; }
	.delta-support-contact { align-items: flex-start; }
}

/* ===== HOMEPAGE SECTIONS (prod parity) ===== */

/* Let full-width groups' inner container use the full bleed width */
.entry-content .wp-block-group > .wp-block-group__inner-container {
	max-width: none;
	padding: 0;
}

/* Client logo strip: full-width cells, alternating gray, centered logos */
.workwith .wp-block-columns { max-width: 1400px; margin: 0 auto; gap: 0; }
.workwith .wp-block-column { display: flex; align-items: center; justify-content: center; min-height: 100px; }
.workwith .wp-block-column:nth-child(odd) { background: #f4f4f4; }
.workwith .wp-block-column img { max-height: 68px; width: auto; }

/* Category cards: full-width row, blue top border, centered title + button */
.boxes { padding: 30px 0 36px; }
.boxes .wp-block-columns { max-width: 1400px; margin: 0 auto; gap: 14px; }
.boxes .wp-block-column {
	border-top: 4px solid var(--delta-blue);
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
	font-size: 15.5px;
}
.boxes .wp-block-column h2 {
	text-align: center;
	font-size: 18px;
	line-height: 1.35;
	margin: 4px 0 12px;
}
.boxes .wp-block-image img { width: 200px; height: 200px; object-fit: cover; }
.boxes .wp-block-separator {
	width: 88%;
	margin: 10px auto;
	background: #e5e5e5;
	height: 1px;
	border: 0;
	opacity: 1;
}
.boxes .wp-block-buttons { justify-content: center; margin-top: 12px; }
.boxes .btns .wp-block-button__link {
	background-color: var(--delta-blue) !important;
	color: #fff !important;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 10px 18px;
	border-radius: 2px;
}
.boxes .btns .wp-block-button__link:hover { background-color: #00226e !important; }

/* Manufacturers: centered heading, bordered logo boxes, centered button */
.mfg-section { background: #fff; padding: 38px 0 36px; }
.mfg-title { font-size: 29.8px; margin: 0 0 22px; }
.mfg-grid {
	display: flex; flex-wrap: wrap; justify-content: center;
	max-width: 1200px; margin: 0 auto 6px; gap: 0;
}
.mfg-box {
	width: 228px; height: 68px;
	border: 1px solid #e2e2e2; background: #fff;
	display: flex; align-items: center; justify-content: center;
	margin: 4px;
}
.mfg-box img { max-height: 40px; max-width: 78%; width: auto; }
.mfg-cta { display: flex; justify-content: center; margin-top: 24px; }
.mfg-cta .wp-block-button__link {
	background-color: var(--delta-blue) !important;
	color: #fff !important;
	font-size: 13px; font-weight: 700;
	padding: 12px 22px; border-radius: 2px;
}
.mfg-cta .wp-block-button__link:hover { background-color: #00226e !important; }

/* Testimonials: white quote card, rotating slides + dots */
.testi-slider { max-width: 840px; margin: 0 auto; }
.testi-slide { display: none; background: #fff; padding: 26px 34px 20px; text-align: center; }
.testi-slide.is-active { display: block; }
.testi-slide p {
	font-style: italic; color: #8a8a8a;
	font-size: 16px; line-height: 1.75; margin: 0 0 16px;
}
.testi-cite { color: #9a9a9a; font-size: 13.5px; letter-spacing: 0.08em; }
.testi-dots { text-align: center; margin-top: 18px; }
.testi-dots span {
	display: inline-block; width: 8px; height: 8px; border-radius: 50%;
	background: #c9c9c9; margin: 0 4px;
}
.testi-dots span.is-active { background: #8a8a8a; }

@media (max-width: 768px) {
	.workwith .wp-block-column { min-height: 72px; }
	.mfg-box { width: 46%; }
}

/* Testimonial section heading tighter */
.testi-title { margin-bottom: 8px !important; }

/* Homepage: hero sits directly under the nav (prod has no gap) */
.home .site-content .inside-article { padding-top: 0; }
.entry-content { margin-top: 0; padding-top: 0; }
.inside-article .entry-content { margin-top: 0; }

/* Desktop: no dropdown carets on top-level items (prod nav has none) */
@media (min-width: 1025px) {
	.main-navigation .main-nav > ul > li.menu-item-has-children > a .dropdown-menu-toggle { display: none; }
}

/* Hero flush: no top margin above content, no cover padding */
.home .site-main { margin-top: 0; }
.wp-block-cover.hero-static { padding: 0; }

/* ===== PAGE TITLE BAR (Avada Page Title Bar replacement) ===== */
.delta-title-bar {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	background-color: var(--delta-blue);
	background-image: url('/wp-content/uploads/2020/02/headers.jpg');
	background-position: 50% 0;
	background-size: cover;
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.delta-page-title {
	color: rgba(255,255,255,0.7);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	padding: 0 20px;
}

/* GP's default page header is superseded by the title bar */
.page .entry-header { display: none; }
.page .inside-article { padding-top: 0; }
.page .site-main { margin-top: 0; }
body { background: #fff; }

@media (max-width: 768px) {
	.delta-title-bar { height: 140px; }
	.delta-page-title { font-size: 28px; }
}

/* Product-card sections (blue band, e.g. coding-and-marking) — prod parity */
.product-cards h2 {
	font-size: 20px;
	font-weight: 400;
	color: var(--delta-blue);
	text-align: center;
	line-height: 1.5;
	margin: 0 0 16px;
}
.product-cards .wp-block-column { font-size: 15.5px; }
.product-cards .wp-block-separator {
	width: 60%;
	margin: 16px auto;
	background: #e5e5e5;
	height: 1px;
	border: 0;
	opacity: 1;
}
.product-cards .wp-block-buttons { justify-content: center; margin-top: 16px; }

/* Converted buttons center like prod (card CTAs, band CTAs) */
.entry-content .wp-block-buttons { justify-content: center; }

/* ===== Uniform buttons (prod spec): 14px/400, 13px 29px, ls 1px, uppercase ===== */
.entry-content .wp-block-button .wp-block-button__link {
	font-size: 14px !important;
	font-weight: 400 !important;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 13px 29px !important;
	border-radius: 2px;
}
.delta-support-cta {
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 1px;
	padding: 13px 29px;
}
@media (max-width: 768px) {
	.entry-content .wp-block-button .wp-block-button__link { padding: 10px 18px; }
}

/* Card buttons: slightly smaller, pinned to the bottom of each cell */
.boxes .wp-block-column,
.product-cards .wp-block-column {
	display: flex;
	flex-direction: column;
}
.boxes .wp-block-column > .wp-block-buttons,
.product-cards .wp-block-column > .wp-block-buttons {
	margin-top: auto;
	padding-top: 16px;
}
.boxes .btns .wp-block-button__link {
	font-size: 12.5px !important;
	font-weight: 600;
	padding: 10px 18px !important;
	letter-spacing: 0.03em;
}
@media (max-width: 768px) {
	.boxes .btns .wp-block-button__link { font-size: 11.5px; padding: 9px 14px; }
}

/* Hero blue panel: centered text with breathing room off the edges */
.wp-block-cover .wp-block-column.is-40-width {
	text-align: center;
	padding: 28px 32px;
}
@media (max-width: 768px) {
	.wp-block-cover .wp-block-column.is-40-width { padding: 22px 20px; }
}

/* Product-card bands: content in centered container, cells centered */
.product-cards .wp-block-columns {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	justify-content: center;
}
.product-cards .wp-block-column:empty { display: none; }

/* LEARN MORE (.btns) buttons blue everywhere, not just homepage cards */
.entry-content .btns .wp-block-button__link {
	background-color: var(--delta-blue) !important;
	color: #fff !important;
}

/* ===== Unit cards (PDF spec sheets) + image rotators (prod parity) ===== */
.unit-card { text-align: center; }
.unit-card img { display: block; margin: 0 auto 10px; }
.entry-content .unit-card h3 { font-size: 14px; font-weight: 700; color: #222; margin: 0 0 14px; }
.unit-card h3 a { color: #222; text-decoration: none; }
.delta-fadeslider { display: grid; border-radius: 10px; overflow: hidden; }
.delta-fadeslider img { grid-area: 1 / 1; width: 100%; height: auto; opacity: 0; transition: opacity .6s; }
.delta-fadeslider img.on { opacity: 1; }

/* Unit-card rows: a lone card gets the same width as its 2-per-row siblings */
.entry-content .wp-block-columns:has(.unit-card) > .wp-block-column:only-child {
	flex-basis: calc(50% - 17px) !important;
	width: calc(50% - 17px) !important;
}
