/*
 * WCP fixes on top of Rosa 2.9.0. Loaded after style.css.
 * The site strips ?ver= from asset URLs and caches CSS for 30 days, so rename this file
 * (wcp-fixes-N.css) and its enqueue in functions.php whenever it changes.
 */

/* Phones: keep the header logo at the old theme's 80px height. */
@media only screen and (max-width: 899px) {
	.site-header .site-title--image img {
		max-height: 80px;
	}
}

/* Desktop: tighten menu item padding so "About Us" stays on the first line. */
@media only screen and (min-width: 900px) {
	.site-header .nav--items-menu > li > a {
		padding-left: 10px;
		padding-right: 10px;
	}
}
@media only screen and (min-width: 1280px) {
	.site-header .nav--items-menu > li > a {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* Page text written as Heading 5 (intros on Order, Gift Cards, About Us): drop the wide caps. */
.page__content h5 {
	letter-spacing: 0.02em;
	text-transform: none;
}

/* Heading 6 in page content (the FAQ questions): keep the caps, cut the wide spacing. */
.page__content h6 {
	letter-spacing: 0.08em;
}

/* Social icons in the phone menu and footer: a 44x44 tap area without moving the icons.
   The desktop header keeps its size, so the menu has room for every item. */
@media only screen and (max-width: 899px) {
	.site-header .nav--items-social > li > a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
		padding-top: 0;
		padding-bottom: 0;
		margin-top: -12px;
		margin-bottom: -12px;
	}
}
.widget [class*="social"] ul > li > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding-top: 0;
	padding-bottom: 0;
	margin-top: -12px;
	margin-bottom: -12px;
}

/* Hero titles: wrap at whole words. Rosa sets hyphens: auto here, and Safari applies it to
   uppercase titles ("QUES-TIONS", "PRIVA-CY POLICY"). Soft hyphens (&shy;) still work. */
.headline__primary,
.headline__secondary {
	-webkit-hyphens: manual;
	-ms-hyphens: manual;
	hyphens: manual;
}

/* Header logo: keep it off the top edge of the window (Rosa puts it at 0px). */
.site-header .site-header__branding {
	padding-top: 12px;
}

@media only screen and (min-width: 900px) {
	.site-header .site-header__branding {
		padding-top: 16px;
	}
}

/* A light dark-to-clear gradient behind the transparent header, so the white menu icon, logo
   and links stay readable over light hero photos (e.g. the order page). Once the page
   scrolls, Rosa gives the header a solid white background (headroom--not-top), so the
   gradient is left off there. */
.header--transparent .site-header:not(.headroom--not-top) {
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.12) 65%, rgba(0, 0, 0, 0));
}
