/*
Theme Name: Exppress Car Wash Custom
Theme URI: https://www.exppresscarwash.com/blog/
Author: Exppress Car Wash
Description: A custom WordPress blog theme for Exppress Car Wash.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: exppress-car-wash-custom
*/

:root {
	--ecw-yellow: #fded03;
	--ecw-yellow-dark: #d9c90a;
	--ecw-ink: #070707;
	--ecw-ink-soft: #151515;
	--ecw-muted: #a7adb7;
	--ecw-line: rgba(253, 237, 3, 0.16);
	--ecw-surface: #101114;
	--ecw-surface-alt: #17191d;
	--ecw-blue: #f4df1f;
	--ecw-red: #c9302c;
	--ecw-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
	--ecw-radius: 8px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: #e8e8e8;
	background: #050505;
	font-family: "Barlow", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
}

p {
	margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	color: #ffffff;
	font-family: "Bai Jamjuree", "Barlow", Arial, sans-serif;
	line-height: 1.12;
	letter-spacing: 0;
}

.site-shell {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
}

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	padding: 10px 14px;
	background: var(--ecw-yellow);
	color: #050505;
	font-weight: 700;
	border-radius: 4px;
}

.button,
.header-cta,
.hero-search button,
.search-submit,
.wp-block-search__button,
.read-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--ecw-yellow);
	border-radius: 4px;
	background: var(--ecw-yellow);
	color: #050505;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.header-cta:hover,
.hero-search button:hover,
.search-submit:hover,
.wp-block-search__button:hover,
.read-more:hover {
	transform: translateY(-1px);
	background: #ffe94a;
	border-color: #ffe94a;
}

.button-light {
	background: #ffffff;
	border-color: #ffffff;
}

.eyebrow {
	margin: 0 0 12px;
	color: var(--ecw-yellow);
	font-family: "Bai Jamjuree", "Barlow", Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.top-strip {
	background: var(--ecw-ink);
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.9rem;
}

.top-strip-inner {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	min-height: 38px;
}

.top-strip a:hover {
	color: var(--ecw-yellow);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid rgba(230, 232, 237, 0.8);
	backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
	box-shadow: 0 8px 30px rgba(16, 17, 20, 0.08);
}

.header-main {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 22px;
	align-items: center;
	min-height: 78px;
}

.brand img,
.custom-logo {
	width: auto;
	max-width: 178px;
	max-height: 58px;
}

.primary-nav {
	justify-self: end;
}

.menu,
.footer-menu,
.recent-list,
.category-list {
	padding: 0;
	margin: 0;
	list-style: none;
}

.menu {
	display: flex;
	gap: 4px;
	align-items: center;
}

.menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 4px;
	color: var(--ecw-ink-soft);
	font-weight: 700;
}

.menu a:hover,
.menu .current-menu-item > a {
	background: var(--ecw-surface-alt);
	color: var(--ecw-ink);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 1px solid var(--ecw-line);
	border-radius: 4px;
	background: var(--ecw-surface);
	cursor: pointer;
}

.nav-toggle span:not(.screen-reader-text) {
	display: block;
	width: 100%;
	height: 2px;
	margin: 5px 0;
	background: var(--ecw-ink);
}

.hero {
	position: relative;
	min-height: 560px;
	display: flex;
	align-items: center;
	overflow: hidden;
	color: #fff;
	background: #020202;
	border-bottom: 1px solid rgba(253, 237, 3, 0.16);
}

.hero-media,
.page-hero {
	background-size: cover;
	background-position: center;
}

.hero-media {
	position: absolute;
	inset: 0;
	opacity: 0.34;
	filter: grayscale(18%) contrast(1.08);
}

.hero::after,
.page-hero::after,
.single-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.78) 55%, rgba(0, 0, 0, 0.48));
}

.hero-content {
	position: relative;
	z-index: 1;
	padding: 84px 0;
}

.hero h1,
.page-hero h1 {
	max-width: 820px;
	color: #fff;
	font-size: clamp(2.5rem, 6vw, 5.6rem);
}

.single-hero h1 {
	max-width: 820px;
	color: #fff;
	font-size: clamp(1.8rem, 4.5vw, 3.2rem);
	line-height: 1.25;
}

.hero-copy,
.page-hero p,
.single-hero p {
	max-width: 640px;
	margin-top: 18px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.18rem;
}

.hero-search {
	display: flex;
	width: min(620px, 100%);
	margin-top: 34px;
	padding: 6px;
	background: #fff;
	border-radius: var(--ecw-radius);
	border: 1px solid rgba(253, 237, 3, 0.36);
	box-shadow: 0 16px 45px rgba(0, 0, 0, 0.38);
}

.hero-search input,
.search-field,
.wp-block-search__input {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--ecw-line);
	border-radius: 4px;
	background: #0c0c0c;
	color: #ffffff;
	font: inherit;
}

.hero-search input {
	border: 0;
	background: #ffffff;
	color: #111111;
}

.section {
	padding: 88px 0;
	background: linear-gradient(180deg, #080808 0%, #0d0d0d 100%);
	color: #e8e8e8;
}

.section-heading {
	display: flex;
	gap: 24px;
	align-items: end;
	justify-content: space-between;
	margin-bottom: 34px;
}

.section-heading h2 {
	max-width: 760px;
	color: #ffffff;
	font-size: clamp(2rem, 4vw, 3.4rem);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.post-grid-two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #151515 0%, #0d0d0d 100%);
	border: 1px solid var(--ecw-line);
	border-radius: var(--ecw-radius);
	box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.post-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, var(--ecw-yellow), rgba(253, 237, 3, 0));
	opacity: 0.82;
}

.post-card:hover {
	transform: translateY(-3px);
	border-color: rgba(253, 237, 3, 0.42);
	box-shadow: var(--ecw-shadow);
}

.post-card-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #050505;
	border-bottom: 1px solid rgba(253, 237, 3, 0.16);
}

.post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.post-card:hover .post-card-media img {
	transform: scale(1.04);
}

.post-card-body {
	padding: 24px;
}

.post-meta,
.single-kicker {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 12px;
	color: var(--ecw-yellow);
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
}

.post-card h3 {
	margin-bottom: 12px;
	font-size: 1.35rem;
}

.post-card h3,
.post-card h3 a {
	color: #ffffff;
}

.post-card h3 a:hover {
	color: var(--ecw-yellow);
}

.post-card p {
	color: var(--ecw-muted);
}

.read-more {
	min-height: 38px;
	margin-top: 10px;
	padding: 0 14px;
	font-size: 0.9rem;
}

.pagination-wrap {
	margin-top: 42px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.page-numbers {
	min-width: 42px;
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border: 1px solid var(--ecw-line);
	border-radius: 4px;
	background: #101114;
	color: #ffffff;
	font-weight: 800;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--ecw-yellow);
	color: #050505;
	border-color: var(--ecw-yellow);
}

.page-hero,
.single-hero {
	position: relative;
	overflow: hidden;
	padding: 110px 0;
	background-color: #030303;
	border-bottom: 1px solid rgba(253, 237, 3, 0.16);
	background-size: cover;
	background-position: center;
}

.page-hero .site-shell,
.single-hero-inner {
	position: relative;
	z-index: 1;
}

.archive-description {
	max-width: 680px;
	color: rgba(255, 255, 255, 0.82);
}

.single-hero {
	background: #030303;
}

.single-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("assets/images/page-header-bg.jpg") center / cover;
	opacity: 0.32;
}

.single-kicker {
	color: var(--ecw-yellow);
}

.content-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 42px;
	align-items: start;
}

.single-content-shell {
	padding-top: 70px;
	padding-bottom: 90px;
}

.article-wrap,
.narrow-content {
	max-width: 820px;
}

.article-wrap,
.narrow-content,
.comments-area {
	padding: 28px;
	background: linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
	border: 1px solid var(--ecw-line);
	border-radius: var(--ecw-radius);
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.featured-media {
	margin: 0 0 34px;
	overflow: hidden;
	border-radius: var(--ecw-radius);
	background: #050505;
	border: 1px solid rgba(253, 237, 3, 0.14);
}

.featured-media img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

.entry-content {
	color: #d9dde4;
	font-size: 1.08rem;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 1.25rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 2rem;
	margin-bottom: 0.9rem;
	color: #ffffff;
}

.entry-content a {
	color: var(--ecw-yellow);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.35rem;
}

.entry-content blockquote {
	margin: 2rem 0;
	padding: 24px;
	border-left: 4px solid var(--ecw-yellow);
	background: rgba(253, 237, 3, 0.08);
	border-radius: 0 var(--ecw-radius) var(--ecw-radius) 0;
	font-weight: 600;
}

.post-footer {
	margin-top: 34px;
	padding-top: 24px;
	border-top: 1px solid var(--ecw-line);
}

.post-taxonomy,
.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.post-taxonomy a,
.tag-list a,
.category-list a {
	display: inline-flex;
	padding: 7px 10px;
	border: 1px solid var(--ecw-line);
	border-radius: 4px;
	color: #ffffff;
	font-weight: 700;
}

.post-taxonomy a:hover,
.tag-list a:hover,
.category-list a:hover {
	border-color: var(--ecw-yellow);
	background: var(--ecw-yellow);
	color: #050505;
}

.post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 34px;
}

.post-nav a {
	display: block;
	min-height: 92px;
	padding: 18px;
	border: 1px solid var(--ecw-line);
	border-radius: var(--ecw-radius);
	background: #101114;
	color: #ffffff;
	font-weight: 800;
}

.post-nav span {
	display: block;
	margin-bottom: 6px;
	color: var(--ecw-yellow);
	font-size: 0.82rem;
	text-transform: uppercase;
}

.sidebar {
	position: sticky;
	top: 118px;
	display: grid;
	gap: 18px;
}

.widget,
.empty-state {
	padding: 24px;
	border: 1px solid var(--ecw-line);
	border-radius: var(--ecw-radius);
	background: linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
	box-shadow: 0 14px 38px rgba(0, 0, 0, 0.26);
}

.widget-title {
	margin-bottom: 16px;
	color: #ffffff;
	font-size: 1.2rem;
}

.search-form,
.wp-block-search {
	display: grid;
	gap: 10px;
}

.search-submit,
.wp-block-search__button {
	width: 100%;
}

.recent-list,
.category-list {
	display: grid;
	gap: 12px;
}

.recent-list a {
	display: grid;
	gap: 4px;
	color: #ffffff;
	font-weight: 700;
}

.recent-list span {
	color: var(--ecw-muted);
	font-size: 0.82rem;
	text-transform: uppercase;
}

.footer-cta {
	padding: 44px 0;
	background: var(--ecw-yellow);
}

.footer-cta-inner {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
}

.footer-cta .eyebrow,
.footer-cta h2 {
	color: var(--ecw-ink);
}

.footer-cta h2 {
	max-width: 760px;
	font-size: clamp(1.8rem, 3vw, 3rem);
}

.site-footer {
	padding: 58px 0 24px;
	background: var(--ecw-ink);
	color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 34px;
}

.footer-brand img {
	max-width: 178px;
	margin-bottom: 18px;
}

.footer-title {
	margin-bottom: 16px;
	color: #fff;
	font-size: 1.1rem;
}

.footer-menu {
	display: grid;
	gap: 10px;
}

.footer-menu a:hover {
	color: var(--ecw-yellow);
}

.footer-bottom {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-top: 42px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.92rem;
}

.footer-bottom p {
	margin: 0;
}

@media (max-width: 1024px) {
	.top-strip-inner {
		justify-content: center;
	}

	.top-strip-inner span {
		display: none;
	}

	.header-main {
		grid-template-columns: auto auto;
	}

	.nav-toggle {
		display: block;
		justify-self: end;
	}

	.header-cta {
		display: none;
	}

	.primary-nav {
		grid-column: 1 / -1;
		display: none;
		width: 100%;
		justify-self: stretch;
	}

	.primary-nav.is-open {
		display: block;
		padding-bottom: 16px;
	}

	.menu {
		display: grid;
		gap: 6px;
	}

	.content-with-sidebar {
		grid-template-columns: 1fr;
	}

	.sidebar {
		position: static;
	}

	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.site-shell {
		width: min(100% - 24px, 1180px);
	}

	.hero {
		min-height: 540px;
	}

	.hero h1,
	.page-hero h1,
	.single-hero h1 {
		font-size: clamp(2.2rem, 12vw, 3.4rem);
	}

	.hero-search,
	.footer-cta-inner,
	.footer-bottom {
		display: grid;
	}

	.section {
		padding: 62px 0;
	}

	.section-heading {
		display: block;
	}

	.post-grid,
	.post-grid-two,
	.post-nav,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.page-hero,
	.single-hero {
		padding: 78px 0;
	}

	.single-content-shell {
		padding-top: 46px;
		padding-bottom: 64px;
	}
}


/* Floating Action Buttons & Sidebar Tabs (Sticky Images) */
.sticky-images {
    position: fixed;
    top: 55%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
}

.sticky-images img {
    display: block;
    margin: 5px 0;
    width: auto;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s ease-in-out;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-button img {
    width: 45px;
    height: 45px;
}

.franchise-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s ease-in-out;
}

.franchise-button:hover {
    transform: scale(1.1);
}

.franchise-button img {
    width: 60px;
    height: 60px;
}

.tooltip-franchise {
    position: absolute;
    left: 70px;
    background: #ffffff;
    color: #000;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-10px);
}

.tooltip-franchise.show {
    opacity: 1;
    transform: translateX(0);
}

.tooltip-franchise::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
}

@media (max-width: 767.98px) {
    .sticky-images,
    .franchise-button {
        display: none !important;
    }
}
