/*
Theme Name: Alpha Rooter & Plumbing
Theme URI: https://alpharooterplumbing.com/
Description: Custom standalone theme for Alpha Rooter & Plumbing – Tucson, AZ. Includes a fully dynamic header system, brand-color Customizer controls, and a services page template.
Author: Alpha Rooter & Plumbing
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alpharooter
Tags: plumbing, service, custom-logo, custom-menu, custom-colors, responsive-layout
*/

/* =====================================================
   GLOBAL CSS CUSTOM PROPERTIES
   (Defaults here; overridden by Customizer via wp_head)
===================================================== */
:root {
	--red:         #f71010;
	--red-dark:    #9B1730;
	--red-light:   #E8354F;
	--black:       #1a1a1a;
	--silver:      #C0C0C0;
	--silver-light:#E8E8E8;
	--gray-bg:     #f5f5f5;
	--white:       #ffffff;
	--font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =====================================================
   BASE RESET
===================================================== */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--font-body);
	color: var(--black);
	background: var(--white);
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--red);
	text-decoration: none;
	transition: color 0.2s;
}
a:hover {
    color: #838383;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-body);
	color: var(--black);
	line-height: 1.25;
	margin-top: 0;
}

p {
	margin-top: 0;
	margin-bottom: 1rem;
}

ul, ol {
	padding-left: 1.5rem;
}

/* =====================================================
   LAYOUT UTILITIES
===================================================== */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.section {
	padding: 80px 0;
}

/* =====================================================
   MAIN CONTENT AREA
===================================================== */
.site-content {
	min-height: 60vh;
}

.content-area {
	padding: 60px 0;
}

.entry-title {
	font-size: 36px;
	font-weight: 800;
	margin-bottom: 20px;
}

.entry-content {
	font-size: 16px;
	line-height: 1.8;
	max-width: 780px;
}

.entry-content p { margin-bottom: 1.25rem; }
.entry-content h2 { font-size: 26px; margin: 2rem 0 1rem; }
.entry-content h3 { font-size: 21px; margin: 1.75rem 0 0.75rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content img { border-radius: 8px; margin: 1.5rem 0; }
.entry-content a { color: var(--red); border-bottom: 1px solid rgba(196,30,58,.25); }
.entry-content a:hover { color: var(--red-dark); border-color: var(--red-dark); }

/* =====================================================
   BRAND BUTTONS
===================================================== */
.btn-primary {
	display: inline-block;
	background: var(--red);
	color: #fff !important;
	padding: 14px 32px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.3px;
	border: 2px solid var(--red);
	transition: background 0.3s, border-color 0.3s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
	background: var(--red-dark);
	border-color: var(--red-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(196,30,58,.3);
}

.btn-outline {
	display: inline-block;
	background: transparent;
	color: var(--red) !important;
	padding: 14px 32px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 15px;
	border: 2px solid var(--red);
	transition: all 0.3s;
}
.btn-outline:hover {
	background: var(--red);
	color: #fff !important;
}

/* =====================================================
   SIMPLE PAGE / BLOG CARDS
===================================================== */
.posts-loop {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 30px;
}

.post-card {
	background: #fff;
	border: 1px solid var(--silver-light);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(0,0,0,.1);
}

.post-card-body {
	padding: 24px;
}
.post-card-body .post-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 10px;
}
.post-card-body .post-title a {
	color: var(--black);
}
.post-card-body .post-title a:hover {
	color: var(--red);
}
.post-card-body .post-excerpt {
	font-size: 14px;
	color: #666;
	margin-bottom: 16px;
}
.post-card-body .post-meta {
	font-size: 12px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* =====================================================
   PAGINATION
===================================================== */
.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 50px;
	flex-wrap: wrap;
}
.pagination a,
.pagination span {
	display: inline-block;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	border: 1px solid var(--silver-light);
	color: var(--black);
	transition: all 0.2s;
}
.pagination a:hover,
.pagination .current {
	background: var(--red);
	color: #fff;
	border-color: var(--red);
}

/* =====================================================
   404 PAGE
===================================================== */
.error-404-wrap {
	text-align: center;
	padding: 100px 20px;
}
.error-404-wrap .error-code {
	font-size: 120px;
	font-weight: 900;
	color: var(--red);
	line-height: 1;
	margin-bottom: 10px;
}
.error-404-wrap h1 {
	font-size: 32px;
	margin-bottom: 16px;
}
.error-404-wrap p {
	font-size: 17px;
	color: #666;
	max-width: 480px;
	margin: 0 auto 30px;
}

/* =====================================================
   SEARCH RESULTS PAGE
===================================================== */
.search-form-wrap {
	margin-bottom: 40px;
}
.search-form-wrap .search-field {
	width: 100%;
	max-width: 540px;
	padding: 14px 20px;
	border: 2px solid var(--silver-light);
	border-radius: 6px;
	font-size: 16px;
	font-family: var(--font-body);
	outline: none;
	transition: border-color 0.2s;
}
.search-form-wrap .search-field:focus {
	border-color: var(--red);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {
	.section { padding: 50px 0; }
	.entry-title { font-size: 26px; }
	.error-404-wrap .error-code { font-size: 80px; }
}
