/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com/
Description: Child theme for GeneratePress. SPM Services header and footer.
Author: Site Administrator
Author URI: https://generatepress.com/
Template: generatepress
Version: 1.0.6
Text Domain: generatepress-child
*/

/* Hide default GeneratePress header/footer chrome */
body.spm-theme .site-header,
body.spm-theme .main-navigation,
body.spm-theme .mobile-menu-control-wrapper,
body.spm-theme .footer-widgets,
body.spm-theme .site-info,
body.spm-theme .footer-bar {
	display: none !important;
}

body.spm-theme .site-footer {
	background: transparent;
	padding: 0;
	border: 0;
	color: inherit;
}

/* Full-bleed home / case study content — remove GP boxed layout */
body.spm-home .site.grid-container,
body.spm-home .site,
body.spm-home #page,
body.spm-home .site-content,
body.spm-home #content,
body.spm-home .content-area,
body.spm-home .inside-article,
body.spm-home .entry-content,
body.spm-home .entry-content > *,
body.spm-home .lazyblock,
body.single-case_study .site.grid-container,
body.single-case_study .site,
body.single-case_study #page,
body.single-case_study .site-content,
body.single-case_study #content,
body.single-case_study .content-area,
body.single-case_study .inside-article,
body.single-case_study .entry-content,
body.single-case_study .entry-content > *,
body.single-case_study .lazyblock,
body.post-type-archive-case_study .site.grid-container,
body.post-type-archive-case_study .site,
body.post-type-archive-case_study #page,
body.post-type-archive-case_study .site-content,
body.post-type-archive-case_study #content,
body.post-type-archive-case_study .content-area,
body.post-type-archive-case_study .inside-article,
body.post-type-archive-case_study .site-main,
body.post-type-archive-case_study .site-main > article {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.spm-home .inside-article,
body.spm-home .entry-header,
body.single-case_study .inside-article,
body.single-case_study .entry-content,
body.single-case_study .entry-content > *,
body.single-case_study .lazyblock,
body.post-type-archive-case_study .site-content,
body.post-type-archive-case_study .site-main,
body.post-type-archive-case_study .inside-article {
	padding: 0 !important;
	margin: 0 !important;
}

body.spm-home .entry-content {
	margin: 0 !important;
}

/* GP separate-containers puts margin on .site-main. Footer sits outside
   .site, so that gap shows the black homepage background. */
body.spm-theme .site-main,
body.spm-theme.separate-containers .site-main,
body.spm-theme.separate-containers.no-sidebar .site-main,
body.spm-theme .site-main > *,
body.spm-theme .site-content,
body.spm-theme .content-area,
body.spm-theme .inside-article,
body.spm-theme .entry-content,
body.spm-theme .entry-content > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Kill any gap above the hero / under the admin bar.
   Target only the main page article — not nested SPM section articles
   (.spm-help-item, .spm-boutique-item, etc.) whose padding must match HTML. */
body.spm-home .site-main,
body.spm-home .content-area,
body.spm-home .site-main > article,
body.spm-home .entry-content > .lazyblock:first-child,
body.spm-home .entry-content > .wp-block-lazyblock:first-child {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.spm-home .spm-hero {
	margin-top: 0 !important;
}

/* About page — same full-bleed treatment as the homepage */
body.spm-about .site.grid-container,
body.spm-about .site,
body.spm-about #page,
body.spm-about .site-content,
body.spm-about #content,
body.spm-about .content-area,
body.spm-about .inside-article,
body.spm-about .entry-content,
body.spm-about .entry-content > *,
body.spm-about .lazyblock {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.spm-about .inside-article,
body.spm-about .entry-header,
body.spm-about .entry-content {
	padding: 0 !important;
	margin: 0 !important;
}

body.spm-about .site-main,
body.spm-about .content-area,
body.spm-about .site-main > article,
body.spm-about .entry-content > .lazyblock:first-child,
body.spm-about .entry-content > .wp-block-lazyblock:first-child {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Process page — same full-bleed treatment as About */
body.spm-process .site.grid-container,
body.spm-process .site,
body.spm-process #page,
body.spm-process .site-content,
body.spm-process #content,
body.spm-process .content-area,
body.spm-process .inside-article,
body.spm-process .entry-content,
body.spm-process .entry-content > *,
body.spm-process .lazyblock {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.spm-process .inside-article,
body.spm-process .entry-header,
body.spm-process .entry-content {
	padding: 0 !important;
	margin: 0 !important;
}

body.spm-process .site-main,
body.spm-process .content-area,
body.spm-process .site-main > article,
body.spm-process .entry-content > .lazyblock:first-child,
body.spm-process .entry-content > .wp-block-lazyblock:first-child {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Excel page — same full-bleed treatment as About */
body.spm-excel .site.grid-container,
body.spm-excel .site,
body.spm-excel #page,
body.spm-excel .site-content,
body.spm-excel #content,
body.spm-excel .content-area,
body.spm-excel .inside-article,
body.spm-excel .entry-content,
body.spm-excel .entry-content > *,
body.spm-excel .lazyblock {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.spm-excel .inside-article,
body.spm-excel .entry-header,
body.spm-excel .entry-content {
	padding: 0 !important;
	margin: 0 !important;
}

body.spm-excel .site-main,
body.spm-excel .content-area,
body.spm-excel .site-main > article,
body.spm-excel .entry-content > .lazyblock:first-child,
body.spm-excel .entry-content > .wp-block-lazyblock:first-child {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* 404 — full-bleed, same as inner pages */
body.spm-404 .site.grid-container,
body.spm-404 .site,
body.spm-404 #page,
body.spm-404 .site-content,
body.spm-404 #content,
body.spm-404 .content-area,
body.spm-404 .inside-article,
body.spm-404 .entry-content,
body.spm-404 .site-main,
body.spm-404 .site-main > article {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-top: 0 !important;
	margin-top: 0 !important;
}
