/* Drywall Leads - Foundation Styles (mobile-first) */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
	color: #1a1a1a;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.site-main {
	padding: 1rem;
	max-width: 1200px;
	margin: 0 auto;
}

.home .site-main {
	max-width: none;
	padding: 0;
}

/* Header */
.site-header {
	border-bottom: 1px solid #e5e5e5;
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem;
	max-width: 1200px;
	margin: 0 auto;
}

.site-branding .custom-logo-link {
	display: inline-block;
}

.site-title {
	font-size: 1.125rem;
	font-weight: 700;
	text-decoration: none;
}

.site-header__phone {
	text-decoration: none;
	font-weight: 600;
}

.nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #ccc;
	background: #fff;
	cursor: pointer;
}

.nav-toggle__bar {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	background: #1a1a1a;
}

.site-nav--desktop {
	display: none;
	width: 100%;
}

.site-nav--mobile {
	width: 100%;
	padding: 0 1rem 1rem;
}

.site-nav--mobile[hidden] {
	display: none;
}

.nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu li + li {
	margin-top: 0.5rem;
}

.nav-menu a {
	text-decoration: none;
}

@media (min-width: 768px) {
	.nav-toggle {
		display: none;
	}

	.site-nav--desktop {
		display: block;
		width: auto;
	}

	.site-nav--mobile {
		display: none !important;
	}

	.nav-menu {
		display: flex;
		gap: 1.25rem;
	}

	.nav-menu li + li {
		margin-top: 0;
	}
}

/* Content */
.entry + .entry,
.archive-header + .entry {
	margin-top: 2rem;
}

.entry-title {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
}

.entry-meta {
	font-size: 0.875rem;
	color: #555;
}

.entry-meta span + span,
.entry-meta time {
	margin-left: 0.75rem;
}

.archive-grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.archive-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.entry-title {
		font-size: 2rem;
	}
}

@media (min-width: 1024px) {
	.archive-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Breadcrumbs */
.breadcrumbs {
	margin-bottom: 1rem;
	font-size: 0.875rem;
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.breadcrumbs__item + .breadcrumbs__item::before {
	content: "/";
	margin-right: 0.5rem;
	color: #888;
}

/* Search */
.search-form {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.search-form__field {
	flex: 1;
	min-height: 44px;
	padding: 0.5rem 0.75rem;
}

.search-form__submit {
	min-height: 44px;
	padding: 0.5rem 1rem;
	cursor: pointer;
}

/* Footer */
.site-footer {
	border-top: 1px solid #e5e5e5;
	margin-top: 2rem;
	padding: 2rem 1rem;
	background: #f8f8f8;
}

.site-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.site-footer__grid {
	display: grid;
	gap: 1.5rem;
}

.site-footer__heading {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.site-footer__address {
	font-style: normal;
}

.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.5rem;
}

.site-footer__copyright {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #e0e0e0;
	font-size: 0.875rem;
}

@media (min-width: 768px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.site-footer__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Sticky mobile call button placeholder */
.mobile-call-button {
	position: fixed;
	right: 1rem;
	bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	z-index: 100;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1rem;
	border-radius: 999px;
	background: #1a1a1a;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
	body.has-mobile-call-button {
		padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
	}
}

@media (min-width: 768px) {
	.mobile-call-button {
		display: none;
	}
}
