/*
	* Theme Name: PR Custom
	* Description: Custom child theme by Paul Ruocco using the Salient parent theme. Optimized for WCAG, ADA compliance, SEO, and speed.
	* Theme URI: https://paulruocco.com/
	* Author: ThemeNectar/Paul Ruocco
	* Author URI: https://paulruocco.com/
	* Template: salient
	* Version: 4.5
*/

@import url("helpers.css");

/* -----------------------------------------------------------
    Variables — Color palette
------------------------------------------------------------ */

:root {
    /* ___(match to Salient "Accent" color) */
    --color-accent: #c91c1f;
    --color-accent-dk: #951417;
    --color-accent-lt: #ef2124;
    --color-accent-rgb: 201, 28, 31;

    /* ___(match to Salient "Extra Color 1") */
    --color-primary: #324b72;
    --color-primary-dk: #1b293f;
    --color-primary-lt: #426498;
    --color-primary-rgb: 50, 75, 114;

    /* ___(match to Salient "Extra Color 2") */
    --color-secondary: ;
    --color-secondary-dk: ;
    --color-secondary-lt: ;
    --color-secondary-rgb: ;

    /* ___(match to Salient "Extra Color 3") */
    --color-tertiary: ;
    --color-tertiary-dk: ;
    --color-tertiary-lt: ;
    --color-tertiary-rgb: ;

    /* ___ */
    --color-light: ;
    --color-light-dk: ;
    --color-light-lt: ;
    --color-light-rgb: ;

    /* ___ */
    --color-dark: ;
    --color-dark-dk: ;
    --color-dark-lt: ;
    --color-dark-rgb: ;
}

/* -----------------------------------------------------------
    Variables — Semantic colors
------------------------------------------------------------ */

:root {
    /* Success */
    --color-success: #28a745;
    --color-success-dk: #1b742f;
    --color-success-lt: #31cd54;
    --color-success-rgb: 40, 167, 69;

    /* Info */
    --color-info: #17a2b8;
    --color-info-dk: #107584;
    --color-info-lt: #1bc3de;
    --color-info-rgb: 23, 162, 184;

    /* Warning */
    --color-warning: #ffc107;
    --color-warning-dk: #cc9a05;
    --color-warning-lt: #ffd107;
    --color-warning-rgb: 255, 193, 7;

    /* Danger */
    --color-danger: #dc3545;
    --color-danger-dk: #a92835;
    --color-danger-lt: #ff3d43;
    --color-danger-rgb: 220, 53, 69;

    /* Terminal */
    --color-terminal: #28a745;
    --color-terminal-dk: #7eaa22;
    --color-terminal-lt: #b0ff33;
    --color-terminal-rgb: 165, 221, 45;
}

/* -----------------------------------------------------------
    Variables — Gradients
------------------------------------------------------------ */

:root {
    /* Gradient, Accent */
    --gradient-1: linear-gradient(
        0deg,
        var(--color-accent) 0%,
        var(--color-accent-lt) 65%
    );

    /* Gradient, Primary */
    --gradient-lt: linear-gradient(
        0deg,
        var(--color-primary) 0%,
        var(--color-primary-lt) 65%
    );

    /* Gradient, Light */
    --gradient-1: linear-gradient(
        0deg,
        var(--color-dark) 0%,
        var(--color-dark-lt) 65%
    );

    /* Gradient, Dark */
    --gradient-lt: linear-gradient(
        0deg,
        var(--color-light) 0%,
        var(--color-light-lt) 65%
    );
}

/* -----------------------------------------------------------
    Variables — Typography
------------------------------------------------------------ */

:root {
    --font-heading: "DM Sans", Arial, sans-serif; /* Set the font for headings, keeping Arial and sans-serif as fallback options */
    --font-body: "", Arial, sans-serif; /* Set the font for body copy, keeping Arial and sans-serif as fallback options */
    --font-body-color: ""; /* Set the salient body font color and this to match */
    --font-code: "Lucida Console", monospace; /* System font, do not change */
}

/* -----------------------------------------------------------
    Site-specific
------------------------------------------------------------ */

/* Header & Navigation */
#header-outer[data-format=menu-left-aligned] .row .col.span_3 {
    margin-right: 48px;
}

/* Coupon accent */

.coupon-triangle::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    border-top: 20rem solid transparent;
    border-right: 100rem solid rgba(201, 28, 31, 0.8);
    border-bottom: 0 solid transparent;
    border-left: 0
}

/* Adjust width of navigation sub menus */

#header-outer #top .sf-menu > li ul {
    width: 25em;
    border-radius: 5px;
    left: 50%;
    transform: translateX(-50%);
}

#header-outer #top .sf-menu > li ul::before {
    content: '';
	position: absolute; 
	bottom: 100%;
    left: 50%;
    transform: translateX(calc(-50% - 0.5rem));
	display: block;
	width: 0;
	height: 0;
	border-top: 0;
	border-right: 1rem solid transparent;
	border-bottom: .75rem solid #fff;
	border-left: 1rem solid transparent;
}

/* Navigation badge */

#header-outer li > a .menu-title-text > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    bottom: 3px;
    margin-left: .25em;
    padding: .25em .5em;
	color: #fff;
    font-size: .7em;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    border-radius: .25em;
    background-color: var(--color-accent);
}

/* Nectar Icons with Text */

.smaller-icons .iwithtext {
    --iwithtext-icon-size: 32px;
	--iwithtext-gap: 1rem;
}

/* Nectar Post Grid */

.nectar-post-grid[data-card=yes] .nectar-post-grid-item {
	background-color: transparent !important;
}

.nectar-post-grid[data-card=yes] .content * {
	color: inherit !important;
}

.nectar-post-grid[data-text-color=dark] .nectar-post-grid-item .post-heading, 
.nectar-post-grid[data-text-color=dark] .nectar-post-grid-item .post-heading > * {
	color: var(--color-primary) !important;
}

.nectar-post-grid[data-text-color=dark] .nectar-post-grid-item:hover .post-heading, 
.nectar-post-grid[data-text-color=dark] .nectar-post-grid-item:hover .post-heading > * {
	color: var(--color-accent) !important;
}

/* Nectar Image Gallery */

.portfolio-items .work-item {
    border-radius: 5px;
}


/* Footer columns */

#footer-outer {
    border-top: .3rem solid var(--color-accent);
}

#footer-widgets .container .row::before, #footer-widgets .container .row::after {
    display: none;
}

#footer-widgets .container .row {
    display: flex;
	flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    width: 100%;
}

@media only screen and (min-width: 1000px) {
	#footer-widgets .container .row {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
	}
}

#footer-widgets .container .row > div {
    margin: 0 !important;
    width: auto !important;
}

#footer-widgets .container .row > div:first-child {
    max-width: 30rem !important;
}
