/*
Theme Name: Justice Child
description: Client Theme - Justice
Template: justice-parent
Version: 1.0.0
Text Domain: justice-child
Author: BCW
*/

/* ==========================================================================
   Performance Masters - dark automotive treatment
   Colour roles come from the Customizer (see theme_colors.php):
     --color-1  #111111  primary dark      --color-2  #ea1903  red accent
     --color-3  #1e1e1e  charcoal          --color-4  #e9e9e9  light gray
     --color-5  #ffffff                    --color-6  #000000
   Everything below only re-skins elements that already exist in the Justice
   parent theme. No new containers or sections were introduced.
   ========================================================================== */

:root {
	--pm-black: #0d0d0d;        /* primary page background */
	--pm-charcoal: #1a1a1a;     /* alternating band          */
	--pm-charcoal-2: #232323;   /* cards / raised surfaces   */
	--pm-line: #333333;         /* hairlines                 */
	--pm-text: #d6d6d6;         /* body copy on dark         */
	--pm-text-dim: #b3b3b3;
	--pm-red: var(--color-2);
	--pm-red-dark: #b31302;
	/* Same red, lifted just enough to clear 4.5:1 for inline text links on
	   near-black. Buttons and accents keep the exact brand red. */
	--pm-red-link: #ff4a33;
}

/* ==========================================================================
   1. Base + typography
   ========================================================================== */

html,
body {
	background-color: var(--pm-black);
}

body {
	/* base.css references an undefined --text-color, so set this explicitly */
	color: var(--pm-text);
}

.sections {
	background-color: var(--pm-black);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: #fff;
	font-weight: 800;
}

h1 {
	letter-spacing: 0.02em;
}

/* Major section headings read as automotive: heavy + uppercase */
.feature-section h2,
.service-section h2,
.brands-section h2,
.angle-section .content h2,
.angle-section .title-row .content-col .heading h2,
.background-section h2,
.icon-section .sec-content h2,
.columns-section .sec-content h2,
.gallery-section .content h2,
.carousel-section .content h2 {
	text-transform: uppercase;
	font-weight: 800;
}

p,
li {
	color: var(--pm-text);
}

/* Inherit, so bold copy stays readable on light panels as well as dark */
strong,
b {
	color: inherit;
	font-weight: 800;
}

/* Red is an accent only - never large blocks of body copy */
a {
	color: var(--pm-red-link);
}

a:hover,
a:focus {
	color: #fff;
	text-decoration: underline;
}

/* ==========================================================================
   2. Buttons - red with white text, everywhere
   ========================================================================== */

body .gform_wrapper.gravity-theme .button,
.btn,
.feature-section .links .btn,
.angle-section .title-row .content-col .btn,
.service-section .btn,
.background-section .btn {
	background-color: var(--pm-red);
	color: #fff;
	border: 2px solid var(--pm-red);
	font-weight: 800;
}

body .gform_wrapper.gravity-theme .button:hover,
body .gform_wrapper.gravity-theme .button:focus,
.btn:hover,
.btn:focus,
.feature-section .links .btn:hover,
.feature-section .links .btn:focus,
.angle-section .title-row .content-col .btn:hover,
.angle-section .title-row .content-col .btn:focus,
.service-section .btn:hover,
.service-section .btn:focus,
.background-section .btn:hover,
.background-section .btn:focus {
	background-color: var(--pm-red-dark);
	border-color: var(--pm-red-dark);
	color: #fff;
	text-decoration: none;
}

/* ==========================================================================
   3. Header - black bar, white nav, red hover
   ========================================================================== */

.primary-header {
	background-color: #000;
	box-shadow: 0 2px 0 0 var(--pm-red);
}

.primary-header .cta-section {
	background-color: #000;
	border-bottom: 1px solid var(--pm-line);
}

.primary-header .cta-section a,
.primary-header a,
.main-nav a {
	color: #fff;
}

.primary-header .cta-section a:hover,
.primary-header .cta-section a:focus,
.main-nav .current_page_item > a,
.main-nav a:hover,
.main-nav a:focus,
.mobile-header .mobile-c2a a:hover,
.mobile-header .mobile-c2a a:focus {
	color: var(--pm-red);
}

/* The PMI logo is dark line art, so it keeps a light plate for readability */
.primary-header .logo-col a,
.mobile-logo {
	background-color: #fff;
	display: inline-block;
	padding: 6px 12px;
	border-radius: 2px;
}

.primary-header .logo-col a img {
	max-height: 104px;
}

/* Dropdowns */
.menu-item-has-children .sub-menu {
	background-color: rgba(10, 10, 10, 0.96);
	border: 1px solid var(--pm-line);
}

.main-nav .menu .sub-menu li a {
	color: #fff;
}

.main-nav .menu .sub-menu li a:hover,
.main-nav .menu .sub-menu li a:focus {
	color: var(--pm-red);
}

/* Mobile header */
.mobile-header .mobile-c2a {
	background-color: var(--pm-red);
}

.mobile-header .mobile-nav {
	background-color: #000;
}

.mobile-header .mobile-nav a,
.mobile-header .nav-toggler {
	color: #fff;
}

.mobile-header .mobile-nav a:hover,
.mobile-header .mobile-nav a:focus,
.mobile-header .mobile-nav .current_page_item > a,
.mobile-header .nav-toggler.active,
.mobile-header .nav-toggler .toggle-less,
.mobile-header .nav-toggler.active .icon {
	color: var(--pm-red);
}

.mobile-header .nav-more {
	background-color: #000;
}

/* Mega-menu variant of the mobile header */
.mobile-header {
	background-color: #000;
}

.mobile-header .mobile-row .toggle-nav .fas {
	color: #fff;
}

.mobile-header .logo-col a {
	background-color: #fff;
	padding: 5px 10px;
	border-radius: 2px;
}

.mobile-header .mobile-menu {
	border-bottom-color: var(--pm-line);
}

.mobile-header .menu > li {
	border-top-color: var(--pm-line);
}

.mobile-header .mobile-c2a a:hover,
.mobile-header .mobile-c2a a:focus {
	color: #111;
}

/* ==========================================================================
   4. Banner section
   ========================================================================== */

.banner-section .image {
	background-color: #000;
}

.banner-section .image .acf-media {
	opacity: 0.55;
}

.banner-section .content {
	color: #fff;
}

.banner-section .content p {
	color: #f0f0f0;
}

/* Home banner - Shop Interior, framed on the vehicles */
.home .fc_banner_section .banner-section .image img {
	object-position: 50% 66%;
}

/* About banner - drop the copy below the crew faces */
.fc_banner_section.banner-text-lower .banner-section .content .inner {
	justify-content: flex-end;
	padding-bottom: 5vw;
}

/* Gallery banner - Blazer */
.page-id-492 .fc_banner_section .banner-section .image img {
	object-position: 50% 62%;
}

/* Services banner */
.page-id-491 .fc_banner_section .banner-section .image img {
	object-position: 50% 55%;
}

/* ==========================================================================
   5. Feature section ("What We Do") - black band
   ========================================================================== */

.fc_feature_section {
	background-color: var(--pm-black);
}

.feature-section {
	padding: 70px 0;
	margin: 0;
}

.feature-section h2 {
	color: #fff;
}

.feature-section .container p {
	color: var(--pm-text);
}

.feature-section .links .link .heading {
	color: #fff;
	text-transform: uppercase;
	font-weight: 800;
	letter-spacing: 1px;
}

.feature-section .links .link a:hover .heading,
.feature-section .links .link a:focus .heading {
	color: var(--pm-red);
}

.feature-section .links .link a:hover,
.feature-section .links .link a:focus {
	text-decoration: none;
}

.feature-section .links .link:not(:last-child):after {
	background-color: var(--pm-line);
}

/* Consistent tiles + per-tile framing */
.feature-section .links .link .image img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border: 1px solid var(--pm-line);
}

/* Custom Engine Builds - show more of the bottom of the frame */
.feature-section .links .link:nth-child(1) .image img {
	object-position: 50% 78%;
}

/* Dyno Tuning & EFI - show the chassis dyno under the car */
.feature-section .links .link:nth-child(2) .image img {
	object-position: 50% 76%;
}

.feature-section .links .link:nth-child(3) .image img {
	object-position: 50% 50%;
}

.feature-section .links .link:nth-child(4) .image img {
	object-position: 50% 55%;
}

/* ==========================================================================
   6. Angle section - charcoal band, near-black panel
   ========================================================================== */

.fc_angle_section {
	background-color: var(--pm-charcoal);
	padding: 40px 0;
}

.angle-section {
	margin: 60px auto;
}

.angle-section .title-row .content-col .inner {
	background-color: #000;
}

.angle-section .title-row .content-col {
	color: var(--pm-text);
}

.angle-section .content h2,
.angle-section .title-row .content-col .heading h2 {
	color: #fff;
	font-size: 34px;
	line-height: 1.15;
	letter-spacing: 3px;
	margin-bottom: 18px;
}

.angle-section .content p {
	color: var(--pm-text);
}

.angle-section a:not(.btn) {
	color: var(--pm-red-link);
}

/* Alfa Romeo - keep the group of people and the car in frame */
.home .fc_angle_section .title-row .image-col img {
	object-position: 50% 33%;
}

/* About - shop photo */
.page-id-490 .fc_angle_section .title-row .image-col img {
	object-position: 50% 45%;
}

@media screen and (max-width: 991px) {
	.angle-section .title-row .content-col {
		background-color: #000;
	}
}

/* ==========================================================================
   7. Service section - black band, charcoal panel
   ========================================================================== */

.fc_service_section {
	background-color: var(--pm-black);
	padding: 40px 0;
}

.service-section .service-row .content-col {
	background-color: var(--pm-charcoal);
	color: var(--pm-text);
	border-left: 4px solid var(--pm-red);
}

.service-section .service-row .content-col h2 {
	color: #fff;
	font-size: 30px;
	margin-bottom: 16px;
}

.service-section .service-row .content-col p {
	color: var(--pm-text);
}

.service-section .images-carousel .owl-nav button {
	background-color: var(--pm-red);
	color: #fff;
}

.service-section .images-carousel .owl-nav button:hover,
.service-section .images-carousel .owl-nav button:focus {
	background-color: var(--pm-red-dark);
}

/* Cars In Bays */
.home .fc_service_section .service-row .image-col img {
	object-position: 50% 45%;
}

/* Staff photo - do not crop faces out */
.page-id-490 .fc_service_section .service-row .image-col img {
	object-position: 50% 58%;
}

/* Dyno Tuning (2) */
.page-id-491 .fc_service_section .service-row .image-col img {
	object-position: 50% 55%;
}

/* ==========================================================================
   8. Background section - dark overlay, light copy
   ========================================================================== */

.background-section.color-light:after {
	background-color: #000;
	opacity: 0.62;
}

.background-section.color-light,
.background-section.color-light p {
	color: #fff;
}

.background-section h2 {
	color: #fff;
}

/* Classic - keep most of the car in frame */
.home .fc_background_section .background-section {
	background-position: 50% 42%;
}

/* ==========================================================================
   9. Icon section (Services grid) - charcoal band, dark cards
   ========================================================================== */

.icon-section {
	background-color: var(--pm-charcoal);
	padding: 70px 0;
}

.icon-section .sec-content {
	color: #fff;
	font-size: 19px;
	line-height: 1.6;
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.icon-section .sec-content p {
	color: #fff;
	font-size: 19px;
}

.icon-section .item {
	background-color: var(--pm-charcoal-2);
	border-top: 3px solid var(--pm-red);
	box-shadow: none;
}

.icon-section .item .icon {
	color: var(--pm-red);
}

.icon-section .item h3 {
	color: #fff;
	text-transform: uppercase;
	font-size: 19px;
	letter-spacing: 1px;
}

.icon-section .item .content,
.icon-section .item .content p {
	color: var(--pm-text-dim);
}

/* ==========================================================================
   10. Gallery / columns / content sections
   ========================================================================== */

.fc_gallery_section {
	background-color: var(--pm-charcoal);
}

.gallery-section {
	padding: 70px 0;
}

.gallery-section .content h2,
.gallery-section .content p {
	color: #fff;
}

.gallery-section .image-col .image {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
	border: 1px solid var(--pm-line);
}

.columns-section {
	background-color: var(--pm-charcoal);
}

.columns-section h3,
.columns-section h4 {
	color: #fff;
}

.columns-section .item p {
	color: var(--pm-text);
}

.fc_content_section {
	background-color: var(--pm-black);
}

.content-section,
.content-section p {
	color: var(--pm-text);
}

.content-section h2,
.content-section h3 {
	color: #fff;
}

/* Section default fell back to --color_1 (near black) on a dark background */
.content-section a {
	color: var(--link_color, var(--pm-red-link));
}

.content-section a:hover,
.content-section a:focus {
	color: #fff;
}

/* ==========================================================================
   11. Brands section - stays light so the logos stay readable
   ========================================================================== */

.fc_brands_section {
	background-color: var(--color-4);
}

.brands-section {
	padding: 45px 0;
}

.brands-section .content h2 {
	color: #111;
}

.brands-section .owl-carousel .owl-dots .owl-dot {
	background-color: #111;
	border-color: #111;
}

.brands-section .owl-carousel .owl-dots .owl-dot.active {
	background-color: var(--pm-red);
	border-color: var(--pm-red);
}

/* ==========================================================================
   12. Carousels
   ========================================================================== */

.owl-carousel .owl-dots .owl-dot {
	background-color: #555;
	border: 1px solid #000;
}

.owl-carousel .owl-dots .owl-dot.active {
	background-color: var(--pm-red);
	border-color: var(--pm-red);
}

/* ==========================================================================
   13. Footer + forms
   ========================================================================== */

.primary-footer {
	background-color: #000;
	border-top: 3px solid var(--pm-red);
	color: #fff;
}

.primary-footer a {
	color: #fff;
}

.primary-footer a:hover,
.primary-footer a:focus {
	color: var(--pm-red);
}

.primary-footer .form-col h2 {
	color: #fff;
}

.primary-footer .logo-col .social .link .fa-inverse {
	color: #000;
}

.primary-footer .form-col .social .link a {
	background-color: #fff;
	color: #000;
}

.primary-footer .copyright {
	background-color: var(--pm-red);
}

.primary-footer .copyright,
.primary-footer .copyright a {
	color: #fff;
}

.primary-footer .copyright a:hover,
.primary-footer .copyright a:focus {
	color: #000;
}

/* Forms stay light for contrast and legibility */
body .gform_wrapper.gravity-theme input:not(.button),
body .gform_wrapper.gravity-theme textarea,
body .gform_wrapper.gravity-theme select {
	background-color: #fff;
	color: #111;
	border: 1px solid #ccc;
}

body .gform_wrapper.gravity-theme input:not(.button)::placeholder,
body .gform_wrapper.gravity-theme textarea::placeholder {
	color: #666;
	opacity: 1;
}

.primary-footer .form-col .gform_wrapper.gravity-theme input::placeholder {
	color: #666;
	opacity: 1;
}

body .gform_wrapper.gravity-theme .gfield_label,
body .gform_wrapper.gravity-theme .gform_required_legend {
	color: #fff;
}

.primary-footer .form-col .gform_wrapper.gravity-theme .button:hover,
.primary-footer .form-col .gform_wrapper.gravity-theme .button:focus {
	background-color: var(--pm-red-dark);
}

/* ==========================================================================
   13b. Contact section (.map-section)
   ========================================================================== */

.fc_contact_section,
.map-section {
	background-color: var(--pm-black);
}

/* The copy panel stays white for contrast, so its text must stay dark */
.map-section .content {
	background-color: #fff;
}

.map-section .content,
.map-section .content p,
.map-section .content li,
.map-section .content h2,
.map-section .content h3 {
	color: #111;
}

.map-section .content a {
	color: var(--pm-red-dark);
}

/* Red was a full-bleed panel here - pull it back to an accent */
.map-section .form-col {
	background-color: var(--pm-charcoal);
	border-top: 3px solid var(--pm-red);
}

.map-section .form-col .gform_wrapper.gravity-theme .gfield_label,
.map-section .form-col h2,
.map-section .form-col h3 {
	color: #fff;
}

.map-section .gform_wrapper.gravity-theme .gform_footer .button {
	background-color: var(--pm-red);
	color: #fff;
}

.map-section .gform_wrapper.gravity-theme .gform_footer .button:hover,
.map-section .gform_wrapper.gravity-theme .gform_footer .button:focus {
	background-color: var(--pm-red-dark);
	color: #fff;
}

/* Single / 404 running copy */
.single-section,
.single-section p,
.section-404,
.section-404 p {
	color: var(--pm-text);
}

.single-section h1,
.single-section h2,
.section-404 h1 {
	color: #fff;
}

/* Sitemap */
.sitemap-section,
.sitemap-section a {
	color: var(--pm-text);
}

.sitemap-section a:hover,
.sitemap-section a:focus {
	color: var(--pm-red);
}

.sitemap-section h2 {
	color: #fff;
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media screen and (max-width: 991px) {
	.primary-header .logo-col a {
		padding: 4px 8px;
	}
}

@media screen and (max-width: 767px) {
	.icon-section .sec-content,
	.icon-section .sec-content p {
		font-size: 17px;
	}

	.angle-section .content h2,
	.angle-section .title-row .content-col .heading h2 {
		font-size: 26px;
		letter-spacing: 2px;
	}
}
