/*
Theme Name: U.S. Oil Changers
Theme URI: https://usoilchangers.com
Author: Apex Bay LLC
Author URI: https://apexbayservices.com
Description: Theme for U.S. Oil Changers (Fast Lube & Repairs) in Woodland, California: services, hours, location, and one-tap call and directions on phones. Shop details are set under Appearance > Shop details.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: us-oil-changers
*/

:root {
	--blue: #0f468f;
	--blue-deep: #0a2f63;
	--glass: #0b3874;
	--red: #d62828;
	--red-dark: #b31e1e;
	--ink: #13203a;
	--muted: #4a5568;
	--line: #d6dde8;
	--ground: #eef2f8;
	--on-blue: #dce7f7;
	--focus: #ffbf47;
	--display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--body: "Barlow", "Segoe UI", system-ui, sans-serif;
	--gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; }
img, iframe { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.02; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(46px, 6.2vw, 78px); letter-spacing: -0.005em; }
h2 { font-weight: 700; font-size: clamp(36px, 4.2vw, 52px); }
h3 { font-weight: 700; font-size: 27px; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #fff; color: var(--ink); padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border-radius: 10px; border: 2px solid transparent; font: 700 18px/1.1 var(--body); text-decoration: none; white-space: nowrap; }
.btn .icon { flex: none; }
.btn-big { padding: 17px 24px; font-size: 20px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--ground); color: var(--blue-deep); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--ground); color: var(--blue-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Notice and header */
.notice-bar { background: var(--red); color: #fff; font-weight: 600; text-align: center; padding: 10px 0; }
.site-header { background: #fff; border-top: 5px solid var(--red); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.badge { display: block; flex: none; width: 56px; height: 56px; }
.badge-sm { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--blue); }
.brand-sub { margin-top: 3px; font-style: italic; font-weight: 600; font-size: 16px; color: var(--red); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.nav-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.nav-link:hover { color: var(--red); text-decoration: underline; text-underline-offset: 5px; }

/* Hero: the windshield and its service sticker */
.hero { background: var(--blue); color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; padding-block: 64px 80px; }
.lead { margin-top: 22px; max-width: 32em; font-size: 21px; color: var(--on-blue); }
.hero-hours { margin-top: 24px; font-weight: 500; color: var(--on-blue); }
.windshield { aspect-ratio: 5 / 4; padding: 28px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 40px 40px 22px 22px; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0 40%, rgba(255, 255, 255, 0.07) 40% 47%, rgba(255, 255, 255, 0) 47% 55%, rgba(255, 255, 255, 0.05) 55% 58%, rgba(255, 255, 255, 0) 58%), var(--glass); }
.sticker { width: min(100%, 330px); padding: 20px 22px 18px; border-radius: 20px; background: #fff; color: var(--ink); transform: rotate(-3deg); box-shadow: 0 22px 40px -14px rgba(3, 16, 38, 0.6); }
.sticker-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--red); }
.sticker-name { font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1; color: var(--blue); }
.sticker-sub { margin-top: 3px; font-style: italic; font-weight: 600; font-size: 15px; color: var(--red); }
.sticker-title { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: 21px; }
.sticker-line { display: flex; align-items: flex-end; gap: 12px; margin-top: 12px; font-weight: 600; font-size: 15px; color: var(--muted); }
.sticker-line .blank { flex: 1; height: 1.2em; border-bottom: 2px dotted #98a6bc; }
.sticker-foot { margin-top: 16px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* Services, set like a shop's menu board */
.services { padding-block: 84px; }
.intro { margin-top: 14px; max-width: 34em; font-size: 20px; color: var(--muted); }
.menu { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); column-gap: 56px; border-top: 4px solid var(--blue); }
.menu li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start; padding-block: 22px; border-bottom: 1px solid var(--line); }
.menu svg { width: 40px; height: 40px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu h3 { font-size: 28px; }
.menu p { margin-top: 4px; color: var(--muted); }

/* Why choose us */
.why { padding-block: 56px; background: var(--ground); }
.why-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 56px; align-items: center; }
.why h2 { font-size: clamp(32px, 3.4vw, 42px); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 30px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; }
.checks svg { flex: none; width: 26px; height: 26px; }
.checks circle { fill: var(--red); }
.checks path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Hours and location */
.visit { padding-block: 84px; }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: stretch; }
.address { margin-top: 20px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3vw, 38px); line-height: 1.1; }
.facts { margin: 22px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.map { min-height: 360px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--ground); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* Footer */
.site-footer { padding-top: 48px; background: var(--blue-deep); color: var(--on-blue); font-size: 17px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-family: var(--display); font-size: 22px; color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--on-blue); }
.footer-base { margin-top: 36px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 15px; }

/* Other pages */
.prose { max-width: 760px; padding-block: 56px 88px; }
.prose h1 { margin-bottom: 24px; font-size: clamp(38px, 5vw, 54px); }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.post-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 24px; }

/* Call and directions bar on phones */
.call-bar { display: none; }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 44px 56px; }
	.windshield { max-width: 460px; }
	.visit-grid { grid-template-columns: 1fr; gap: 40px; }
	.why-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	body { padding-bottom: 78px; }
	.main-nav { display: none; }
	.call-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 24px rgba(10, 30, 60, 0.16); }
	.call-bar .btn { padding-block: 15px; }
	.services, .visit { padding-block: 60px; }
}

@media (max-width: 480px) {
	.btn-big { width: 100%; }
	.brand-name { font-size: 24px; }
	.badge { width: 48px; height: 48px; }
	.badge-sm { width: 42px; height: 42px; }
	.windshield { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
