/*
 * ============================================================
 * SIMPLY DESIGN — CLIENT CONFIGURATION
 * ============================================================
 * Client:       Intermountain Freestyle
 * Site:         https://imfreestyle.com
 * Designer:     Simply Design
 * Last updated: 2026-06-04
 *
 * FONTS
 * -----
 * Display:  Rift 700 — Adobe Fonts (Typekit kit: bvh6onr)
 * Body:     DIN 2014 400, 600 — Adobe Fonts (Typekit kit: bvh6onr)
 * Script:   Nothing You Could Do 400 — self-hosted
 *
 * COLORS
 * ------
 * Navy:   #0D1F3C
 * Red:    #CC2229
 * ============================================================
 */


/* ----------------------------------------------------------
   SIMPLY STARTER CLIENT TOKENS
   These are the exact tokens Simply Starter reads.
   Set them here — the entire theme updates automatically.
   ---------------------------------------------------------- */

:root {

	/* --imf-* aliases — Toolset block CSS was generated using these variable names.
	   Keep them defined here so any saved Toolset styles resolve correctly.
	   Undefined CSS variables in !important declarations cause color: unset !important (black). */
	--imf-navy:          #0D1F3C;
	--imf-navy-dark:     #0D1F3C;
	--imf-navy-light:    #162d55;
	--imf-red:           #CC2229;
	--imf-red-dark:      #a81b21;
	--imf-white:         #ffffff;
	--imf-off-white:     #f5f5f5;
	--imf-light-gray:    #f2f2f2;
	--imf-dark-gray:     #555555;
	--imf-near-black:    #1a1a1a;

	/* Global page */
	--client-bg:              #ffffff;
	--client-text:            #1a1a1a;
	--client-heading:         #0D1F3C;
	--client-link:            #CC2229;
	--client-link-hover:      #a81b21;

	/* Navigation */
	--client-nav-bg:             #0D1F3C;
	--client-nav-text:           #ffffff;
	--client-nav-highlight:      #CC2229;
	--client-nav-highlight-text: #ffffff;

	/* Accent / buttons sitewide */
	--client-accent:          #CC2229;
	--client-accent-text:     #ffffff;
	--client-accent-hover:    #a81b21;

	/* Fonts */
	--client-font-display:    'rift', sans-serif;
	--client-font-primary:    'din-2014', sans-serif;
	--client-font-script:     'NothingYouCouldDo', cursive;

	/* Section — Dark (navy bg, red highlight) */
	--client-section-dark-bg:        #0D1F3C;
	--client-section-dark-text:      #f5f5f5;
	--client-section-dark-heading:   #ffffff;
	--client-section-dark-highlight: #CC2229;

	/* Section — Light (off-white bg) */
	--client-section-light-bg:        #f2f2f2;
	--client-section-light-text:      #1a1a1a;
	--client-section-light-heading:   #0D1F3C;
	--client-section-light-highlight: #CC2229;

	/* Section — Brand 1 (red bg) */
	--client-section-brand1-bg:         #CC2229;
	--client-section-brand1-text:       #ffffff;
	--client-section-brand1-heading:    #ffffff;
	--client-section-brand1-highlight:  #ffffff;

	/* Section — Brand 2 (light navy) */
	--client-section-brand2-bg:         #162d55;
	--client-section-brand2-text:       #ffffff;
	--client-section-brand2-heading:    #ffffff;
	--client-section-brand2-highlight:  #CC2229;

}


/* ----------------------------------------------------------
   HEADER — CTA flush to right edge
   ---------------------------------------------------------- */

@media (min-width: 960px) {
	.site-header > .wrap {
		padding-right: 0;
	}
}


/* Interior pages with a page hero — slide behind fixed nav, same as homepage */
.ss-interior:has( .is-page-hero ) .site-container {
	padding-top: 0;
}


/* ----------------------------------------------------------
   IMF CLUBS — location pin before subtitle
   ---------------------------------------------------------- */

h5.imf-club-card__subtitle::before {
	content: '';
	display: inline-block;
	width: 10px;
	height: 14px;
	margin-right: 5px;
	vertical-align: middle;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 26 34'%3E%3Cpath d='M12 0C5.4 0 0 5.4 0 12c0 9 12 20 12 20s12-11 12-20C24 5.4 18.6 0 12 0z' fill='%23CC2229' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='5' fill='%23fff'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}


/* ----------------------------------------------------------
   DESKTOP SUB-NAVIGATION
   8px gap between nav and sub-menu, accent border, red caret.
   Hover bridge in theme covers the gap (bottom: -20px, height: 20px).
   ---------------------------------------------------------- */

@media (min-width: 960px) {

	.nav-primary .genesis-nav-menu .sub-menu {
		top: calc(var(--ss-header-height) + 8px);
		border-top: 3px solid var(--client-accent);
		border-radius: 0 0 3px 3px;
	}

	/* Upward caret — CSS triangle in accent color */
	.nav-primary .genesis-nav-menu .sub-menu::before {
		content: '';
		position: absolute;
		top: -11px;
		left: 20px;
		border-left: 8px solid transparent;
		border-right: 8px solid transparent;
		border-bottom: 8px solid var(--client-accent);
	}
}


/* ----------------------------------------------------------
   UTILITY BAR — align right edge with CTA button
   Simply Starter default is 5px. IMF: match the CTA button's
   32px internal padding so both right edges line up.
   ---------------------------------------------------------- */



/* ----------------------------------------------------------
   H2 — match series/news block heading style
   ---------------------------------------------------------- */

h2 {
	font-size: 44px;
	line-height: 1.0;
	text-transform: uppercase;
	margin: 0;
}


/* ----------------------------------------------------------
   LOGO LAYOUT — .left-logos (2/3) + .right-logos (1/3)
   Parent container should be display:flex (Toolset row handles this).
   Mobile: stacks left-logos on top.
   ---------------------------------------------------------- */

.left-logos {
	flex: 2;
	min-width: 0;
}

.right-logos {
	flex: 1;
	min-width: 0;
}

/* Override WordPress gallery column grid — display as flex row of logos */
.left-logos .gallery,
.right-logos .gallery {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin: 0;
}

.right-logos {
	padding-left: 60px;
}

.left-logos .gallery-item,
.right-logos .gallery-item {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.left-logos .gallery-icon,
.right-logos .gallery-icon {
	display: flex;
	align-items: center;
}

.left-logos img {
	height: 40px !important;
	max-height: 40px !important;
	width: auto !important;
}

.right-logos img {
	max-height: 120px !important;
	max-width: 100% !important;
	height: auto !important;
	width: auto !important;
}

.right-logos .gallery {
	justify-content: flex-end;
	flex-wrap: nowrap;
}

.right-logos .gallery-item {
	flex: 1;
	min-width: 0;
}

@media ( max-width: 768px ) {
	.left-logos,
	.right-logos {
		flex: none;
		width: 100%;
	}

	.left-logos .gallery,
	.right-logos .gallery {
		flex-wrap: nowrap;
		gap: 8px;
		justify-content: center;
		margin: 0 auto;
	}

	.left-logos .gallery-item,
	.right-logos .gallery-item {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.left-logos .gallery-icon,
	.right-logos .gallery-icon {
		justify-content: center;
	}

	.left-logos img {
		max-width: 100% !important;
		height: auto !important;
		max-height: 28px !important;
	}

	.right-logos img {
		max-width: 100% !important;
		height: auto !important;
		max-height: 56px !important;
	}
}


/* ----------------------------------------------------------
   FOOTER — light gray bg, dark text
   Theme default is dark bg / light text (wireframe).
   Client config flips it to light section tokens.
   ---------------------------------------------------------- */

.footer-widgets,
.site-footer,
.footer-bottom-bar {
	background-color: var(--client-section-light-bg);
}

.footer-widgets {
	border-top: 5px solid var(--client-section-dark-bg);
}

.footer-widgets .widget-title {
	color: var(--client-section-light-heading);
	font-size: 22px;
	letter-spacing: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.footer-widgets p,
.footer-widgets li,
.footer-widgets a {
	color: var(--client-section-light-text);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.site-footer,
.site-footer p,
.site-footer a {
	color: var(--client-section-light-text);
}

.footer-widgets a:hover,
.site-footer a:hover {
	color: var(--client-section-light-heading);
	opacity: 0.8;
	text-decoration: none;
}

.footer-widgets ul li {
	padding: 0;
	border-bottom: none;
}

/* Logos — full color on light bg */
.footer-bottom-bar img {
	filter: none;
	mix-blend-mode: multiply;
}

.footer-bottom-bar .widget_custom_html img {
	max-height: 150px;
	width: auto;
}

@media (max-width: 768px) {
	.footer-bottom-bar .widget_custom_html {
		display: none;
	}
}

.footer-bottom-bar img:hover {
	opacity: 0.85;
}

/* Gallery widget — full width */
.footer-bottom-bar .widget_media_gallery,
.footer-bottom-bar .footer-bottom-widget {
	width: 100%;
	max-width: 100%;
	float: none;
}

.footer-bottom-bar .gallery {
	width: 100%;
	max-width: 100%;
}


/* ----------------------------------------------------------
   GRAVITY FORMS — email signup (form 1)
   ---------------------------------------------------------- */

#gform_1 .ginput_container_email input[type="email"] {
	border-radius: 50px;
	padding: 12px 20px;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var( --client-heading );
	background: #ffffff;
	color: var( --client-heading );
	font-family: var( --client-font-primary );
	font-size: 14px;
}

#gform_1 .ginput_container_email input[type="email"]::placeholder {
	color: rgba( 13, 31, 60, 0.5 );
}

#gform_1 .ginput_container_email input[type="email"]:focus {
	outline: none;
	border-color: var( --client-heading );
	box-shadow: 0 0 0 3px rgba( 13, 31, 60, 0.15 );
}

/* Visually hidden but readable by screen readers */
#gform_1 .gfield_label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

#gform_1 .gform_footer {
	padding-top: 8px !important;
	margin-top: 0 !important;
}

#gform_1 .gform_button {
	width: 100% !important;
	border-radius: 50px !important;
	background-color: var( --client-accent ) !important;
	color: #fff !important;
	font-family: var( --client-font-display ) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	padding: 12px 28px !important;
	border: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

#gform_1 .gform_button:hover {
	background-color: var( --client-accent-hover ) !important;
}


/* ----------------------------------------------------------
   RECENT POSTS WIDGET — more breathing room for longer titles
   ---------------------------------------------------------- */

#recent-posts-2 ul li {
	margin-bottom: 10px !important;
}


/* ----------------------------------------------------------
   ROUNDED SHAPES — pill buttons, rounded cards/images
   Theme and plugins default to square (border-radius: 0).
   ---------------------------------------------------------- */

:root {
	--sn-radius: 8px;
	--st-radius: 8px;
}

.button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.ss-btn,
.simply-btn,
.sf-filter-btn,
.sn-filter-btn,
.st-card__more,
.wp-block-button__link {
	border-radius: 100px !important;
}

.wp-block-button__link {
	padding: 8px 40px !important;
	font-size: 14px !important;
}

.ss-badge {
	border-radius: 20px;
}

.ss-card {
	border-radius: 8px;
}

.simply-post-hero {
	border-radius: 8px;
}

/* Mobile menu CTA pill */
.nav-primary .genesis-nav-menu > .menu-highlight > a,
.nav-primary .genesis-nav-menu > .cta > a {
	border-radius: 100px;
}

/* Toolset buttons — pill shape + display font */
.tb-button__link {
	border-radius: 50px !important;
	font-family: var(--client-font-display) !important;
}


/* ----------------------------------------------------------
   NAV HOVER — opacity instead of underline
   Simply Starter default uses a bottom box-shadow underline.
   IMF uses a subtle opacity dim on hover for all nav links.
   ---------------------------------------------------------- */

@media (min-width: 960px) {
	.nav-primary .genesis-nav-menu a:hover,
	.nav-primary .genesis-nav-menu a:focus,
	.nav-primary .genesis-nav-menu .current-menu-item > a {
		box-shadow: none;
		opacity: 0.8;
	}
}


/* ----------------------------------------------------------
   NAV CTA — Full-height flush block (desktop)
   Simply Starter default changed to compact pill in v2.12.0.
   IMF uses the original full-height block style — red fills the
   entire header height with no border radius.
   ---------------------------------------------------------- */

@media (min-width: 960px) {
	.nav-primary .genesis-nav-menu > li.cta > a {
		height: var(--ss-header-height);
		display: flex;
		align-items: center;
		align-self: stretch;
		padding: 0 32px;
		margin-left: 24px;
		font-size: 16px;
		border-radius: 0;
	}

	.nav-primary .genesis-nav-menu > li.cta > a:hover,
	.nav-primary .genesis-nav-menu > li.cta > a:focus {
		--client-nav-highlight: transparent;
		opacity: 0.85;
		background-color: var(--client-accent);
	}
}


/* ----------------------------------------------------------
   SIMPLY EVENTS — IMF brand overrides
   Token defaults in simply-events.css already pull from
   --client-* so most things work automatically. These are
   explicit overrides for IMF-specific values.
   ---------------------------------------------------------- */

:root {
	--se-radius: 8px;
}

.se-events-cta {
	border-radius: 100px !important;
	padding: 8px 40px !important;
	font-size: 14px !important;
}

.se-events-title,
.se-filter-btn,
.se-events-cta {
	font-family: var( --client-font-display );
}

.se-event-card__date {
	background-color: var( --client-accent );
}

.se-event-card__date .se-event-card__day,
.se-event-card__date .se-event-card__day--small,
.se-event-card__date .se-event-card__month,
.se-event-card__date .se-event-card__sep {
	font-family: var( --client-font-display );
	color: #ffffff !important;
}

.se-event-card__title {
	font-family: var( --client-font-primary );
	color: #000;
}


/* ----------------------------------------------------------
   IMF CLUBS — card typography
   ---------------------------------------------------------- */

.imf-club-card__body {
	gap: 0;
}

h5.imf-club-card__subtitle {
	align-self: center;
	background-color: var(--client-section-dark-bg);
	color: #ffffff !important;
	border-radius: 5px;
	padding: 5px 10px;
	margin-top: 0;
}

.imf-club-card__contact {
	font-weight: 700;
	margin: 20px 0 2px;
	text-transform: capitalize;
}

a.imf-club-card__email {
	display: block;
	margin: -8px 0 20px;
	padding-top: 0;
}

a.imf-club-card__website {
	margin-top: auto;
	text-transform: none;
	letter-spacing: 0;
	font-size: inherit;
	color: var(--client-heading);
}

a.imf-club-card__website:hover {
	color: var(--client-heading);
	opacity: 0.7;
}


/* ----------------------------------------------------------
   SIMPLY EVENTS — Single event page (IMF overrides)
   ---------------------------------------------------------- */

/* Border beneath the full header */
.se-single-header,
.imf-series-header {
	border-bottom: 10px solid #e6e7e8;
}

/* Angle cut on image panel — diagonal right edge, same angle as series */
.se-single-header__image {
	clip-path: polygon(0 0, 100% 0, calc(100% - 100px) 100%, 0 100%);
}

/* Eyebrow — match IMF hero eyebrow scale; !important beats theme's ss-eyebrow rule */
.se-single-header__eyebrow {
	font-size: 18px !important;
}

/* Photo credit — script font matching home page hero */
.se-single-header__credit {
	font-family: var(--client-font-script);
	font-size: 13px;
}

.se-single-header__credit strong {
	font-family: var(--client-font-primary);
}

/* Dates — script/tagline style matching imf-hero__tagline */
.se-single-header__dates {
	font-family: var(--client-font-script);
	font-size: clamp(1.4rem, 2.5vw, 2rem);
	font-weight: 400;
	color: var(--client-heading);
	transform: rotate(-2deg);
	transform-origin: left center;
}

/* Title — pull up 1em */
.se-single-header__title {
	margin-top: -1em;
}

/* Button group — inline, joined */
.se-single-header__buttons {
	display: flex;
	flex-direction: row;
	gap: 0;
}

/* Both present: split pill radius — !important to beat the global .ss-btn rule */
.se-single-header__buttons .se-single-header__pdf-link:not(:last-child) {
	border-radius: 100px 0 0 100px !important;
}

.se-single-header__buttons .se-single-header__cta-link:not(:first-child) {
	border-radius: 0 100px 100px 0 !important;
}


/* ----------------------------------------------------------
   SPONSORS BLOCK — scoped overrides for FAQ inside sponsor sections
   Add .sponsors-block as a custom class on the wrapping Section or Column.
   ---------------------------------------------------------- */

.sponsors-block .sf-faq__question-text {
	font-size: 0.75em;
}

.sponsors-block .sf-faq__answer-inner {
	font-size: 0.95em;
}


/* ----------------------------------------------------------
   DIAGONAL IMAGE CUTS
   Add as a custom class on any image block (Advanced → CSS class).
   .img-cut-right → image sits on the LEFT, diagonal cuts right edge.
   .img-cut-left  → image sits on the RIGHT, diagonal cuts left edge.
   ---------------------------------------------------------- */

.img-cut-right {
	clip-path: polygon(0 0, 100% 0, calc(100% - 100px) 100%, 0 100%);
}

.img-cut-left {
	clip-path: polygon(100px 0, 100% 0, 100% 100%, 0 100%);
}

/* .img-cover — fills the full height of its Simply Column.
   Combine with .img-cut-left or .img-cut-right for a diagonal cover image. */
.img-cover {
	flex: 1 1 0;
	min-height: 0;
	margin: 0;
	overflow: hidden;
}

.img-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

@media ( max-width: 640px ) {
	.img-cover {
		flex: none;
	}
	.img-cover img {
		height: auto;
	}
	.img-cut-left,
	.img-cut-right {
		clip-path: none;
	}
}


/* ----------------------------------------------------------
   IMF SERIES — Single series page (IMF overrides)
   ---------------------------------------------------------- */

/* Angle cut on image panel — same diagonal as single event */
.imf-series-header__image {
	clip-path: polygon(0 0, 100% 0, calc(100% - 100px) 100%, 0 100%);
}

@media (max-width: 767px) {
	.imf-series-header__image {
		clip-path: none;
	}
}

/* Photo credit — script font matching home page hero */
.imf-series-header__credit {
	font-family: var(--client-font-script);
	font-size: 13px;
}

.imf-series-header__credit strong {
	font-family: var(--client-font-primary);
}

/* Eyebrow — !important beats theme's .ss-eyebrow { font-size: 12px !important } */
.imf-series-header__eyebrow {
	font-size: 18px !important;
}


/* ----------------------------------------------------------
   PAGE HERO — right-side angled photo
   Add class imf-hero-right to the Simply Section block.
   ---------------------------------------------------------- */

.is-page-hero.imf-hero-right .simply-section__bg-image {
	width: 33% !important;
	left: auto !important;
	right: 0 !important;
	top: 0 !important;
	bottom: 0 !important;
	transform: none;
	clip-path: polygon(100px 0, 100% 0, 100% 100%, 0 100%);
	background-size: cover !important;
}

.is-page-hero.imf-hero-right .simply-section__inner {
	padding-right: 370px !important;
}

@media (max-width: 767px) {
	.is-page-hero.imf-hero-right {
		display: flex !important;
		flex-direction: column;
		padding-top: var(--ss-header-height) !important;
	}

	.is-page-hero.imf-hero-right .simply-section__bg-image {
		position: relative !important;
		width: 100% !important;
		height: 56vw;
		top: auto !important;
		left: 0 !important;
		right: 0 !important;
		bottom: auto !important;
		transform: none;
		clip-path: none;
		flex-shrink: 0;
	}

	.is-page-hero.imf-hero-right .simply-section__inner {
		width: 100% !important;
		max-width: 100% !important;
		padding: 32px 20px !important;
		margin-top: 30px;
	}

	.simply-section__inner {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}

@media (max-width: 1200px) {
	.simply-section__inner {
		padding-left: 30px !important;
		padding-right: 30px !important;
	}
}
