/* Jiffy Lube Oil Change Vancouver */

:root {
	--red: #97012d;
	--red-dark: #66011f;
	--red-bright: #e50045;
	--text: #575757;
	--heading: #3d3d3d;
	--grey-bg: #ededed;
	--border: #e3e3e3;
	--footer-bg: #2c2d30;
	--footer-text: #b3b3b3;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: Lato, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.75;
	color: var(--text);
	background: #fff;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-bright); }

h1, h2, h3, h4 {
	font-weight: 300;
	color: var(--heading);
	line-height: 1.25;
	margin: 0 0 .6em;
}
h1 { font-size: 36px; }
h2 { font-size: 32px; margin-top: 1.2em; }
h3 { font-size: 22px; font-weight: 400; margin-top: 1.2em; }
h4 { font-size: 20px; }

p { margin: 0 0 1.2em; }

ul { padding-left: 1.4em; margin: 0 0 1.2em; }
li { margin-bottom: .4em; }

.icon { width: 1em; height: 1em; vertical-align: -.125em; }

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 20px;
}

.visually-hidden, .skip-link:not(:focus) {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000;
	background: #fff; padding: 8px 14px; border: 2px solid var(--red);
}

.button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 22px;
	background: var(--red);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	border: 1px solid var(--red);
	transition: background .2s, border-color .2s;
}
.button:hover { background: var(--red-bright); border-color: var(--red-bright); color: #fff; }
.button .icon { font-size: 20px; }
.button-outline { background: transparent; color: var(--red-bright); border-color: var(--red-bright); font-weight: 400; padding: 6px 14px; }

.more-link { font-size: 14px; }

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.top-bar {
	background: #f4f4f4;
	font-size: 13px;
	line-height: 30px;
	color: #777;
}
.top-bar .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; }
.top-bar a { color: var(--red); }
.top-bar strong { color: var(--heading); }

.header-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 70px;
}
.logo img { height: 45px; width: auto; }

.main-menu > ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-menu li { margin: 0; position: relative; }
.main-menu > ul > li > a {
	display: block;
	padding: 22px 10px;
	color: var(--heading);
	font-size: 15px;
}
.main-menu > ul > li > a:hover,
.main-menu > ul > li.current > a { color: var(--red); }
.main-menu > ul > li.current > a { text-decoration: underline; text-underline-offset: 6px; }

.sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 280px;
	background: #fff;
	border-top: 3px solid var(--red);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.main-menu li:hover > .sub-menu,
.main-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 6px 20px; color: var(--text); font-size: 14px; }
.sub-menu a:hover, .sub-menu .current a { color: var(--red); background: #f7f7f7; }

.menu-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	font-size: 28px;
	color: var(--red);
	cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline; }

/* ---------- Page title band ---------- */

.page-title {
	background: var(--grey-bg);
	text-align: center;
	padding: 50px 0;
}
.page-title h1 { margin: 0; }

/* ---------- Content layout ---------- */

.content {
	padding: 50px 0 60px;
}
.content > .wrap > :first-child,
.main-col > :first-child { margin-top: 0; }

.with-sidebar .wrap {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 30px;
}

.sidebar h2 { margin-top: 0; }
.side-menu { list-style: none; padding: 0; margin: 0; }
.side-menu li { margin: 0; border-bottom: 1px solid var(--border); }
.side-menu a { display: block; padding: 8px 4px; font-size: 14px; }
.side-menu .current a { color: var(--red-bright); font-weight: 700; }

.feature-image { margin-bottom: 30px; clear: both; }

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
	font-size: 14px;
}
th, td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { color: var(--heading); text-transform: uppercase; font-weight: 700; font-size: 13px; }
.table-scroll { overflow-x: auto; }

.numbered-list { list-style: none; padding: 0; counter-reset: n; }
.numbered-list li { counter-increment: n; padding-left: 2.4em; position: relative; }
.numbered-list li::before {
	content: "#" counter(n);
	position: absolute; left: 0;
	color: var(--red); font-weight: 700;
}

.checklists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.checklists ul { padding-left: 1.2em; }

.note { font-size: 13px; color: #888; }

.service-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.service-links li { border-bottom: 1px solid var(--border); margin: 0; }
.service-links a { display: flex; align-items: center; gap: 10px; padding: 10px 0; }

figure { margin: 0 0 1.5em; }
figure.alignright { float: right; max-width: 360px; margin: 0 0 1.5em 30px; }
h2 { clear: both; }
figcaption { font-size: 13px; color: #888; margin-top: 6px; }

.tire-finder { margin: 30px 0; }

/* Contact page */
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 30px;
	align-items: start;
}
.map-frame { width: 100%; height: 423px; border: 0; display: block; }

/* ---------- Home: slider ---------- */

.slider {
	position: relative;
	height: 500px;
	overflow: hidden;
	background: #e3eaf3;
}
.slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center top;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease, visibility 1s;
}
.slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .25);
}
.slide.active { opacity: 1; visibility: visible; }
.slide-caption {
	position: relative;
	padding: 0 20px 100px;
	color: #fff;
}
.slide-caption > * { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.slide.active .slide-caption > * { opacity: 1; transform: none; }
.slide.active .slide-caption > :nth-child(2) { transition-delay: .3s; }
.slide.active .slide-caption > :nth-child(3) { transition-delay: .6s; }
.slide-title {
	display: block;
	font-size: 42px;
	line-height: 1.1;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.slide-sub {
	display: block;
	margin: 12px 0 22px;
	font-size: 18px;
	font-weight: 700;
	color: #f8e71c;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.slider-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	z-index: 2;
	background: rgba(0, 0, 0, .3);
	border: 0;
	color: #fff;
	font-size: 28px;
	width: 46px; height: 46px;
	display: grid; place-items: center;
	cursor: pointer;
	transition: background .2s;
}
.slider-arrow:hover { background: var(--red); }
.slider-prev { left: 15px; }
.slider-next { right: 15px; }
.slider-dots {
	position: absolute;
	bottom: 90px;
	left: 0; right: 0;
	display: flex;
	justify-content: center;
	gap: 10px;
	z-index: 2;
}
.slider-dots button {
	width: 12px; height: 12px;
	padding: 0;
	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;
	cursor: pointer;
}
.slider-dots button[aria-current="true"] { background: #fff; }

/* ---------- Home: intro boxes ---------- */

.intro {
	position: relative;
	z-index: 3;
	margin-top: -75px;
}
.intro-boxes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	background: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}
.intro-box { border-right: 1px solid var(--border); padding-bottom: 20px; }
.intro-box:last-child { border-right: 0; }
.intro-box-head {
	position: relative;
	background: var(--red);
	color: #fff;
	text-align: center;
	padding: 18px 10px 12px;
	border-right: 1px solid rgba(255, 255, 255, .25);
}
.intro-box:last-child .intro-box-head { border-right: 0; }
.intro-box-head .hex {
	position: absolute;
	top: -24px;
	left: 50%;
	transform: translateX(-50%);
	width: 50px; height: 50px;
	background: var(--red);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	display: grid; place-items: center;
	font-size: 26px;
}
.intro-box-head h2 { color: #fff; font-size: 22px; font-weight: 400; margin: 6px 0 0; }
.intro-box-body { padding: 14px 20px 0; font-size: 14px; }
.intro-box-body ul { margin: 0; }
.intro-box-body .hours { margin: 0; }
.intro-box.location { text-align: center; }
.intro-box.location .map-thumb {
	margin: 10px 0 0;
	min-height: 80px;
	background: url(/images/map-bg.jpg) center / cover;
	display: grid;
	place-items: center;
	padding: 20px 0;
}
.intro-box.phone { text-align: center; }
.big-phone { display: block; font-size: 30px; font-weight: 700; color: var(--heading); line-height: 1.2; margin: 6px 0 14px; }
.partner-logos img { margin: 0 auto 10px; max-height: 70px; width: auto; }

.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 10px; }
.hours dt, .hours dd { margin: 0; }
.intro-box .hours dd { text-align: right; }
.hours-note { margin: 10px 0 0; }

/* ---------- Home: services ---------- */

.section-title {
	text-align: center;
	font-size: 36px;
	margin: 60px 0 30px;
}

.service-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	background: var(--red-dark);
}
.service-tile {
	position: relative;
	display: block;
	min-height: 340px;
	padding: 50px 30px 30px;
	text-align: center;
	color: #fff;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
.service-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(102, 1, 31, .78);
	transition: background .3s;
}
.service-tile:hover::before { background: rgba(151, 1, 45, .9); }
.service-tile > * { position: relative; }
.service-tile .tile-icon { font-size: 44px; color: #fe99b6; }
.service-tile h2 { color: #fff; font-size: 34px; margin: 20px 0 6px; }
.service-tile .tile-lead { color: #fff; font-size: 14px; margin: 0; }
.service-tile .tile-more {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height .4s ease, opacity .4s ease, margin .4s ease;
	font-size: 14px;
	color: #fe99b6;
}
.service-tile:hover .tile-more,
.service-tile:focus .tile-more { max-height: 120px; opacity: 1; margin-top: 16px; }
.service-tile .tile-more strong { display: block; color: #fff; margin-top: 8px; }

.home-lower {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 30px;
	padding: 50px 0 60px;
}
.home-lower h3 { margin-top: 0; }
.mini-services {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
}
.mini-service h3 { font-size: 22px; font-weight: 300; margin: 0 0 12px; }
.mini-service img { margin-bottom: 12px; transition: opacity .2s; }
.mini-service a:hover img { opacity: .85; }
.mini-service p { font-size: 14px; margin: 0 0 4px; }

/* ---------- Footer ---------- */

.site-footer {
	position: relative;
	background: var(--footer-bg);
	color: var(--footer-text);
	font-size: 14px;
	margin-top: 0;
}
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: var(--red-bright); font-size: 24px; margin-bottom: 18px; }

.to-top {
	position: absolute;
	top: -22px;
	left: 50%;
	transform: translateX(-50%);
	width: 44px; height: 44px;
	background: var(--footer-bg);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	display: grid; place-items: center;
	font-size: 24px;
	color: #fff !important;
}

.footer-callouts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	padding-top: 60px;
	padding-bottom: 40px;
	border-bottom: 1px solid #3f4044;
}
.callout { display: block; }
.callout-label { display: flex; align-items: center; gap: 8px; color: var(--red-bright); font-size: 18px; font-weight: 300; }
.callout-label .icon { font-size: 26px; }
.callout-big { display: block; color: #fff; font-size: 32px; line-height: 1.2; }
a.callout:hover .callout-big { color: var(--red-bright); }

.footer-columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	padding-top: 40px;
	padding-bottom: 40px;
}
.footer-columns .hours dd { color: #fff; }

.footer-bottom {
	background: #232427;
	font-size: 12px;
	padding: 18px 0;
}
.footer-bottom .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-logo img { height: 30px; width: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.intro-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.intro-box:nth-child(2) { border-right: 0; }
	.intro-box:nth-child(n+3) { padding-top: 30px; }
	.home-lower { grid-template-columns: 1fr; }
	.mini-services { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
	.mini-service h3 { font-size: 18px; }
	.slider { height: 420px; }
}

@media (max-width: 900px) {
	.menu-toggle { display: block; }
	.main-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		background: #fff;
		box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
		max-height: calc(100vh - 100px);
		overflow-y: auto;
	}
	.main-menu.open { display: block; }
	.main-menu > ul { flex-direction: column; padding: 10px 0; }
	.main-menu > ul > li > a { padding: 10px 20px; }
	.sub-menu {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0;
		padding: 0 0 6px 20px;
		min-width: 0;
	}
	.header-main { position: relative; }

	.with-sidebar .wrap,
	.contact-grid { grid-template-columns: 1fr; }
	.service-tiles { grid-template-columns: 1fr; }
	.service-tile { min-height: 0; }
	.service-tile .tile-more { max-height: none; opacity: 1; margin-top: 16px; }
	.footer-callouts, .footer-columns { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	body { font-size: 14px; }
	h1 { font-size: 30px; }
	h2 { font-size: 26px; }
	.top-bar-name { display: none; }
	.top-bar .wrap { justify-content: center; }
	.page-title { padding: 30px 0; }
	.slider { height: 380px; }
	.slide-title { font-size: 32px; }
	.slide-sub { font-size: 15px; }
	.slider-arrow { display: none; }
	.intro { margin-top: -50px; }
	.intro-boxes { grid-template-columns: 1fr; }
	.intro-box { border-right: 0; }
	.intro-box:nth-child(n+2) { padding-top: 30px; }
	figure.alignright { float: none; margin-left: 0; }
	.mini-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.checklists, .service-links { grid-template-columns: 1fr; }
	.callout-big { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
