/*
Theme Name: HB Car Wash & Coffee Bar
Theme URI: https://hbcarwash.local
Author: HB Car Wash
Author URI: https://hbcarwash.local
Description: Premium WordPress theme for HB Car Wash & Coffee Bar with hero slider, category widgets, and full customization.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hb-car-wash
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: #fefefe;
	color: #1f2937;
	scroll-behavior: smooth;
}

.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px;
}

/* STICKY NAV */
.sticky-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(220, 38, 38, 0.2);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.navbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	padding: 18px 0;
	gap: 24px;
}

.logo-area {
	display: flex;
	align-items: center;
	gap: 12px;
}

.logo-icon {
	background: #dc2626;
	width: 48px;
	height: 48px;
	border-radius: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.7rem;
	color: white;
	box-shadow: 0 8px 16px rgba(220, 38, 38, 0.25);
}

.logo-text h1 {
	font-size: 1.7rem;
	font-weight: 800;
	letter-spacing: -0.3px;
	color: #1e3a8a;
	line-height: 1.2;
	margin: 0;
}

.logo-text span {
	font-size: 0.7rem;
	font-weight: 600;
	background: #fee2e2;
	color: #b91c1c;
	padding: 4px 12px;
	border-radius: 40px;
	display: block;
}

.nav-links {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
}

.nav-links a {
	text-decoration: none;
	font-weight: 600;
	color: #1e3a8a;
	transition: 0.2s;
	display: inline-block;
}

.nav-links a:hover {
	color: #dc2626;
}

.menu-buttons {
	display: flex;
	gap: 14px;
}

.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	flex-direction: column;
	gap: 6px;
	padding: 8px;
	z-index: 101;
}

.btn-outline-blue {
	border: 1.5px solid #1e3a8a;
	background: transparent;
	padding: 8px 20px;
	border-radius: 40px;
	font-weight: 600;
	color: #1e3a8a;
	text-decoration: none;
	transition: 0.2s;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.btn-outline-blue:hover {
	background: #eef2ff;
}

.btn-red-solid {
	background: #dc2626;
	border: none;
	padding: 8px 24px;
	border-radius: 40px;
	font-weight: 600;
	color: white;
	text-decoration: none;
	transition: 0.2s;
	box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
	cursor: pointer;
	display: inline-block;
}

.btn-red-solid:hover {
	background: #b91c1c;
	transform: translateY(-1px);
}

/* HERO SLIDER */
.full-width-hero {
	width: 100%;
	background: #0f172a;
}

.hero-slider-main {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.slides-track {
	display: flex;
	transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.hero-slide {
	flex: 0 0 100%;
	min-height: 620px;
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	align-items: center;
}

.overlay-red-blue {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, #0f2b4d 0%, #7f1a1a 100%);
	opacity: 0.78;
	z-index: 1;
}

.hero-content-split {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 5%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 40px;
}

.hero-left {
	flex: 1.2;
	color: white;
}

.hero-left .badge-warm {
	background: #dc2626;
	display: inline-block;
	padding: 6px 18px;
	border-radius: 40px;
	font-size: 0.8rem;
	font-weight: 700;
	margin-bottom: 20px;
}

.hero-left h2 {
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 20px;
}

.hero-left p {
	font-size: 1.1rem;
	opacity: 0.95;
	max-width: 520px;
	margin-bottom: 30px;
}

.hero-right {
	flex: 0.9;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(8px);
	border-radius: 36px;
	padding: 36px 32px;
	box-shadow: 0 25px 35px -10px rgba(0, 0, 0, 0.2);
	border-left: 5px solid #dc2626;
}

.hero-right h3 {
	font-size: 1.9rem;
	font-weight: 700;
	color: #1e3a8a;
	margin-bottom: 12px;
}

.hero-right p {
	margin: 0 0 16px 0;
	color: #4b5563;
}

.hero-right .hours-line {
	display: flex;
	gap: 16px;
	margin: 16px 0;
	align-items: center;
	color: #2d3e50;
}

.slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.55);
	width: 48px;
	height: 48px;
	border-radius: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1.8rem;
	cursor: pointer;
	z-index: 15;
	transition: 0.2s;
	border: none;
	padding: 0;
}

.slider-arrow:hover {
	background: #dc2626;
}

.arrow-left-slide {
	left: 24px;
}

.arrow-right-slide {
	right: 24px;
}

.dot-slider {
	position: absolute;
	bottom: 24px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 14px;
	z-index: 12;
}

.dot-nav {
	width: 10px;
	height: 10px;
	background: rgba(255, 255, 240, 0.7);
	border-radius: 50%;
	cursor: pointer;
	border: none;
	padding: 0;
	transition: 0.2s;
}

.dot-nav.active-dot {
	background: #dc2626;
	width: 32px;
	border-radius: 20px;
}

/* WELCOME */
.full-width-welcome {
	width: 100%;
	background: linear-gradient(120deg, #f8fafc 0%, #ffffff 100%);
	padding: 70px 0;
	text-align: center;
}

.welcome-card {
	max-width: 900px;
	margin: 0 auto;
}

.welcome-card h2 {
	font-size: 2.6rem;
	color: #1e3a8a;
	margin-bottom: 20px;
}

.welcome-card p {
	color: #4b5563;
	font-size: 1rem;
}

/* SERVICES */
.full-width-services {
	width: 100%;
	background: #ffffff;
	padding: 70px 0;
}

.full-width-services h2 {
	font-size: 2.3rem;
	color: #1e3a8a;
	margin-bottom: 8px;
}

.full-width-services > .container > p {
	color: #4b5563;
	margin-bottom: 20px;
}

.service-grid-photo {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
	gap: 32px;
	margin-top: 40px;
}

.service-photo-card {
	background: white;
	border-radius: 32px;
	overflow: hidden;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
	transition: all 0.3s;
	border: 1px solid #eef2ff;
}

.service-photo-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.service-img {
	height: 230px;
	background-size: cover;
	background-position: center;
}

.service-photo-card h3 {
	font-size: 1.6rem;
	margin: 22px 24px 8px;
	color: #1e3a8a;
}

.service-photo-card p {
	margin: 0 24px 16px;
	color: #666;
	font-size: 0.95rem;
}

/* GALLERY */
.full-width-gallery {
	width: 100%;
	background: #f1f5f9;
	padding: 70px 0;
}

.gallery-header {
	text-align: center;
	margin-bottom: 48px;
}

.gallery-header h2 {
	font-size: 2.3rem;
	color: #1e3a8a;
	margin-bottom: 12px;
}

.gallery-header p {
	color: #475569;
	font-size: 1.1rem;
}

.gallery-grid-modern {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

.gallery-item-modern {
	position: relative;
	height: 280px;
	border-radius: 32px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.8rem;
	color: white;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease, box-shadow 0.3s;
	box-shadow: 0 12px 22px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.gallery-item-modern:hover {
	transform: scale(1.02);
	box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.gallery-icon-overlay {
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(2px);
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 32px;
}

/* Gallery Widget Styles */
.hb-gallery-widget-items {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.gallery-widget-item {
	position: relative;
	height: 280px;
	border-radius: 32px;
	background-size: cover;
	background-position: center;
	transition: transform 0.3s ease, box-shadow 0.3s;
	box-shadow: 0 12px 22px rgba(0, 0, 0, 0.1);
}

.gallery-widget-item:hover {
	transform: scale(1.02);
	box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

/* Ensure standard WordPress gallery/image widgets look good in the Home Gallery area */
#gallery .widget {
	margin-bottom: 40px;
}

#gallery .widget-title {
	text-align: center;
	font-size: 2.3rem;
	color: #1e3a8a;
	margin-bottom: 30px;
}

/* Force grid layout for any container inside the gallery widget area */
#gallery .widget > div,
#gallery .wp-block-gallery, 
#gallery .gallery,
#gallery .hb-gallery-widget-items {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
	gap: 25px !important;
	width: 100% !important;
}

/* Ensure widget items don't have forced widths that break the grid */
#gallery .gallery-item,
#gallery .gallery-widget-item {
	width: 100% !important;
	margin: 0 !important;
}

#gallery img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: 32px;
	box-shadow: 0 12px 24px rgba(0,0,0,0.1);
	transition: transform 0.3s;
	display: block;
}

#gallery img:hover {
	transform: scale(1.03);
}

/* REVIEWS */
.full-width-reviews {
	width: 100%;
	background: white;
	padding: 70px 0;
}

.full-width-reviews h2 {
	font-size: 2.3rem;
	color: #1e3a8a;
	margin-bottom: 8px;
}

.full-width-reviews > .container > p {
	margin-bottom: 20px;
	color: #666;
}

.reviews-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	margin-top: 40px;
}

.review-card-new {
	background: #fefcf8;
	border-radius: 32px;
	padding: 32px;
	flex: 1;
	min-width: 250px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
	border: 1px solid #e2e8f0;
}

.stars {
	color: #dc2626;
	font-size: 1.2rem;
	letter-spacing: 2px;
	margin-bottom: 16px;
}

.review-card-new p {
	margin: 12px 0;
	color: #666;
}

.review-card-new strong {
	color: #1e3a8a;
}

/* CONTACT */
.full-width-blog {
	width: 100%;
	background: #ffffff;
	padding: 80px 0;
}

.blog-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

.full-width-contact {
	width: 100%;
	background: #f8fafc;
	padding: 70px 0;
}

.contact-split {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	background: white;
	border-radius: 48px;
	padding: 48px 44px;
	box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
	border-top: 5px solid #dc2626;
}

.contact-split > div {
	flex: 1;
	min-width: 300px;
}

.contact-split h3 {
	color: #1e3a8a;
	margin-bottom: 20px;
	font-size: 1.3rem;
}

.contact-split p {
	margin-bottom: 12px;
	color: #4b5563;
}

.contact-split i {
	margin-right: 8px;
}

.contact-split input,
.contact-split textarea {
	width: 100%;
	padding: 14px 18px;
	border-radius: 60px;
	border: 1px solid #cbd5e1;
	font-family: inherit;
	margin-bottom: 16px;
	font-size: 1rem;
}

.contact-split textarea {
	border-radius: 28px;
	resize: vertical;
}

.contact-split input:focus,
.contact-split textarea:focus {
	outline: none;
	border-color: #1e3a8a;
	box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* FOOTER */
.full-width-footer {
	width: 100%;
	background: #0f2b3d;
	color: #f1f5f9;
	padding: 48px 0 28px;
	border-top: 6px solid #dc2626;
}

.footer-three-col {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 32px;
	align-items: flex-start;
}

.footer-col {
	flex: 1;
	min-width: 180px;
}

.footer-col h4 {
	color: #ff8a6f;
	margin-bottom: 20px;
	font-size: 1.2rem;
}

.footer-col a,
.footer-col p {
	color: #cbd5e6;
	text-decoration: none;
	display: block;
	margin-bottom: 12px;
	transition: 0.2s;
}

.footer-col a:hover {
	color: #ff8866;
}

.footer-bottom {
	text-align: center;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid #2c5a6e;
	font-size: 0.85rem;
	color: #cbd5e6;
}

/* MOBILE RESPONSIVE */
@media (max-width: 850px) {
	.container {
		padding: 0 16px;
	}

	.navbar {
		flex-wrap: nowrap;
		gap: 12px;
	}

	.nav-links {
		display: none;
	}

	.nav-links.active {
		display: flex;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: rgba(255, 255, 255, 0.98);
		flex-direction: column;
		gap: 0;
		padding: 16px 0;
		border-bottom: 1px solid rgba(220, 38, 38, 0.2);
	}

	.nav-links.active a {
		display: block;
		padding: 12px 16px;
		border-bottom: 1px solid #f0f0f0;
	}

	.menu-buttons {
		display: none;
	}

	.menu-buttons.active {
		display: flex;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: rgba(255, 255, 255, 0.98);
		flex-direction: column;
		gap: 8px;
		padding: 12px 16px;
		border-bottom: 1px solid rgba(220, 38, 38, 0.2);
	}

	.menu-buttons.active a {
		width: 100%;
		text-align: center;
	}

	.hero-slide {
		min-height: 500px;
	}

	.hero-left h2 {
		font-size: 2.2rem;
	}

	.hero-content-split {
		flex-direction: column;
		text-align: center;
		padding: 0 3%;
	}

	.hero-right {
		width: 90%;
		max-width: 400px;
	}

	.slider-arrow {
		width: 40px;
		height: 40px;
		font-size: 1.4rem;
	}

	.arrow-left-slide {
		left: 12px;
	}

	.arrow-right-slide {
		right: 12px;
	}

	.footer-three-col {
		flex-direction: column;
		text-align: center;
		gap: 28px;
	}

	.contact-split {
		flex-direction: column;
		padding: 24px;
	}

	.gallery-grid-modern {
		grid-template-columns: 1fr;
	}

	.service-grid-photo {
		grid-template-columns: 1fr;
	}

	.reviews-wrapper {
		flex-direction: column;
	}
}

@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: flex;
	}

	.navbar {
		padding: 12px 0;
	}
	}

	.logo-text h1 {
		font-size: 1.3rem;
	}

	.logo-text span {
		font-size: 0.6rem;
		padding: 2px 8px;
	}

	.hero-slide {
		min-height: 350px;
	}

	.hero-left h2 {
		font-size: 1.4rem;
	}

	.hero-left p {
		font-size: 0.9rem;
	}

	.hero-right {
		width: 100%;
		padding: 20px 16px;
		border-left: none;
		border-top: 5px solid #dc2626;
	}

	.hero-right h3 {
		font-size: 1.3rem;
	}

	.welcome-card h2 {
		font-size: 1.6rem;
	}

	.full-width-services h2 {
		font-size: 1.6rem;
	}

	.gallery-header h2 {
		font-size: 1.6rem;
	}

	.gallery-item-modern {
		height: 200px;
		font-size: 2rem;
	}

	.full-width-reviews h2 {
		font-size: 1.6rem;
	}

	.review-card-new {
		padding: 20px;
	}

	.contact-split {
		padding: 16px;
	}

	.contact-split h3 {
		font-size: 1.3rem;
	}

	.contact-split input,
	.contact-split textarea {
		padding: 12px 14px;
		font-size: 16px;
	}

	.btn-outline-blue,
	.btn-red-solid {
		padding: 6px 16px;
		font-size: 0.9rem;
	}

	.footer-col h4 {
		font-size: 1rem;
	}

	.footer-bottom {
		font-size: 0.75rem;
	}
}
