/* ============================================
   Freeman Roofing Services - Main Stylesheet
   Sample 1: Classic Trades
   Brand palette: #1a1a1a charcoal + #5c6466 grey accent + white
   ============================================ */

:root {
	--frs-dark: #1a1a1a;
	--frs-accent: #5c6466;
	--frs-light: #f5f5f0;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #1a1a1a;
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: #1a1a1a;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

a:hover {
	opacity: 0.75;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 0.6em;
	color: #1a1a1a;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
	margin: 0 0 1em;
}

/* --- Layout --- */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.container--narrow {
	max-width: 820px;
}

.section {
	padding: 80px 0;
}

.section--tight {
	padding: 56px 0;
}

.section--dark {
	background: #1a1a1a;
	color: #ffffff;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
	color: #ffffff;
}

.section--muted {
	background: #f5f5f0;
}

.eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--frs-accent);
	margin-bottom: 12px;
}

.section--dark .eyebrow {
	color: #ffffff;
	opacity: 0.6;
}

.section-heading {
	text-align: center;
	margin-bottom: 48px;
}

.section-heading h2 {
	margin: 0;
}

/* --- Buttons --- */
.btn {
	display: inline-block;
	padding: 14px 26px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	letter-spacing: 0.3px;
	font-family: inherit;
}

.btn--primary {
	background: #ffffff;
	color: #1a1a1a;
	border-color: #ffffff;
}

.btn--primary:hover {
	background: transparent;
	color: #ffffff;
	opacity: 1;
}

.btn--dark {
	background: #1a1a1a;
	color: #ffffff;
	border-color: #1a1a1a;
}

.btn--dark:hover {
	background: transparent;
	color: #1a1a1a;
	opacity: 1;
}

.btn--outline {
	background: transparent;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline:hover {
	background: #ffffff;
	color: #1a1a1a;
	opacity: 1;
}

.btn--outline-dark {
	background: transparent;
	color: #1a1a1a;
	border-color: #1a1a1a;
}

.btn--outline-dark:hover {
	background: #1a1a1a;
	color: #ffffff;
	opacity: 1;
}

.btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* --- Header (single row, transparent, non-sticky) --- */
.site-header {
	background: transparent;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 0;
	gap: 24px;
}

.site-header__brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-header__brand:hover {
	opacity: 0.85;
}

.site-header__logo {
	height: 150px;
	width: auto;
	display: block;
}

.primary-nav {
	display: flex;
	gap: 28px;
	margin-left: auto;
	margin-right: 24px;
}

.primary-nav a {
	color: #ffffff;
	font-size: 13px;
	opacity: 0.85;
	transition: opacity 0.2s ease;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1.4px;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
	opacity: 1;
}

.site-header__cta {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-header__phone {
	background: #b7bcbf;
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 600;
	padding: 9px 16px;
	border-radius: 4px;
	white-space: nowrap;
	border: 1px solid #b7bcbf;
}

.site-header__phone:hover {
	background: #ffffff;
	color: #1a1a1a;
	opacity: 1;
}

.mobile-toggle {
	display: none;
	background: transparent;
	border: 0;
	color: #ffffff;
	font-size: 31px;
	cursor: pointer;
	padding: 4px 8px;
	line-height: 1;
	margin-left: auto;
}

/* --- Back to top button --- */
.back-to-top {
	position: fixed;
	bottom: 32px;
	right: 32px;
	width: 44px;
	height: 44px;
	background: #1a1a1a;
	color: #ffffff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 90;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	background: var(--frs-accent);
}

/* --- Home Hero --- */
.home-hero {
	position: relative;
	background: #1a1a1a;
	color: #ffffff;
	min-height: 620px;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.home-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
}

.home-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		/* Base layer: uniform dark tint */
		linear-gradient(135deg, rgba(26, 26, 26, 0.75) 0%, rgba(26, 26, 26, 0.6) 100%),
		/* Right-side heavy darkening */
		linear-gradient(to right, rgba(26, 26, 26, 0) 35%, rgba(26, 26, 26, 0.7) 60%, rgba(26, 26, 26, 0.9) 100%);
	z-index: 1;
}

.home-hero__content {
	position: relative;
	z-index: 2;
	padding: 260px 0 96px;
	width: 100%;
}

.home-hero__inner {
	max-width: 620px;
}

.home-hero__eyebrow {
	display: block;
	color: #ffffff;
	opacity: 0.65;
	font-size: 12px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	margin-bottom: 18px;
	font-weight: 500;
}

.home-hero h1 {
	color: #ffffff;
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	font-weight: 600;
	line-height: 1.12;
	margin: 0 0 18px;
	letter-spacing: -0.5px;
}

.home-hero__lead {
	color: #ffffff;
	opacity: 0.85;
	font-size: 16px;
	line-height: 1.65;
	margin: 0 0 32px;
	max-width: 520px;
}

.home-hero__stats {
	display: flex;
	gap: 40px;
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.home-hero__stat-num {
	display: block;
	font-size: 28px;
	font-weight: 600;
	color: #ffffff;
	line-height: 1;
	margin-bottom: 6px;
}

.home-hero__stat-label {
	display: block;
	color: #ffffff;
	opacity: 0.6;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* --- Inner Hero --- */
.inner-hero {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #ffffff;
	min-height: 320px;
	display: flex;
	align-items: center;
}

/* Contact page: taller hero */
.page-template-template-contact .inner-hero {
	min-height: 720px;
}

/* Services & About pages: medium hero */
.page-template-template-services .inner-hero,
.page-template-template-about .inner-hero {
	min-height: 500px;
}

.inner-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(26, 26, 26, 0.82) 0%, rgba(26, 26, 26, 0.68) 100%);
}

.inner-hero__content {
	position: relative;
	z-index: 2;
	padding: 260px 24px 60px;
	width: 100%;
}

.inner-hero__title {
	color: #ffffff;
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin: 0 0 12px;
	font-weight: 600;
	letter-spacing: -0.5px;
	text-transform: uppercase;
}

.inner-hero__subtitle {
	color: #ffffff;
	opacity: 0.85;
	font-size: 17px;
	margin: 0;
	max-width: 640px;
}

/* --- Service Cards --- */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.service-card {
	background: #ffffff;
	border: 1px solid rgba(26, 26, 26, 0.12);
	border-radius: 6px;
	padding: 28px;
	transition: all 0.25s ease;
}

.service-card:hover {
	border-color: #1a1a1a;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
}

.service-card__icon {
	width: 48px;
	height: 48px;
	background: rgba(26, 26, 26, 0.06);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}

.service-card__icon svg {
	width: 24px;
	height: 24px;
	stroke: #1a1a1a;
	stroke-width: 1.5;
	fill: none;
}

.service-card h3 {
	font-size: 17px;
	margin: 0 0 8px;
	font-weight: 600;
}

.service-card p {
	color: rgba(26, 26, 26, 0.7);
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

/* Services list (more compact, used on services page) */
.service-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 0;
	border-top: 1px solid rgba(26, 26, 26, 0.12);
}

.service-list__item {
	padding: 28px 24px;
	border-bottom: 1px solid rgba(26, 26, 26, 0.12);
	border-right: 1px solid rgba(26, 26, 26, 0.12);
}

.service-list__item h3 {
	font-size: 16px;
	margin: 0 0 8px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.service-list__item h3::before {
	content: '';
	width: 8px;
	height: 8px;
	background: #1a1a1a;
	display: inline-block;
}

.service-list__item p {
	color: rgba(26, 26, 26, 0.7);
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

/* --- Why us / Features grid --- */
.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 32px;
}

.feature {
	text-align: left;
}

.feature__num {
	font-size: 13px;
	font-weight: 600;
	color: var(--frs-accent);
	letter-spacing: 1px;
	margin-bottom: 12px;
	display: block;
}

.feature h3 {
	font-size: 17px;
	margin: 0 0 10px;
}

.feature p {
	color: rgba(26, 26, 26, 0.7);
	font-size: 14px;
	line-height: 1.65;
	margin: 0;
}

/* --- About columns --- */
.two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
}

.two-col__media img {
	border-radius: 8px;
	width: 100%;
}

/* --- Mission statement block (two-column) --- */
.mission-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	border-radius: 8px;
	overflow: hidden;
}

.mission-block {
	background: #1a1a1a;
	color: #ffffff;
	padding: 56px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.mission-block .eyebrow {
	color: #ffffff;
	opacity: 0.7;
}

.mission-block p {
	font-size: 17px;
	line-height: 1.75;
	max-width: 760px;
	margin: 0;
	color: #ffffff;
	opacity: 0.92;
}

.mission-image {
	position: relative;
	overflow: hidden;
}

.mission-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* --- Contact section / CTA --- */
.cta-band {
	background: #1a1a1a;
	color: #ffffff;
	padding: 60px 0;
	text-align: center;
}

.cta-band h2 {
	color: #ffffff;
	margin: 0 0 12px;
}

.cta-band p {
	color: #ffffff;
	opacity: 0.85;
	max-width: 560px;
	margin: 0 auto 28px;
}

/* --- Contact page --- */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

.contact-info__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid rgba(26, 26, 26, 0.12);
}

.contact-info__item:last-child {
	border-bottom: 0;
}

.contact-info__icon {
	width: 40px;
	height: 40px;
	background: rgba(26, 26, 26, 0.06);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.contact-info__icon svg {
	width: 18px;
	height: 18px;
	stroke: #1a1a1a;
	stroke-width: 1.7;
	fill: none;
}

.contact-info__label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--frs-accent);
	margin: 0 0 4px;
	font-weight: 500;
}

.contact-info__value {
	font-size: 15px;
	font-weight: 500;
	color: #1a1a1a;
	margin: 0;
}

/* --- Form --- */
.contact-form {
	background: #f5f5f0;
	padding: 36px;
	border-radius: 8px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

.form-field {
	margin-bottom: 14px;
}

.form-field label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #1a1a1a;
	margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(26, 26, 26, 0.18);
	border-radius: 4px;
	background: #ffffff;
	font-family: inherit;
	font-size: 14px;
	color: #1a1a1a;
	transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: 0;
	border-color: #1a1a1a;
}

.form-field textarea {
	resize: vertical;
	min-height: 130px;
}

.form-honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
}

/* Contact Form 7 styling — keeps the look consistent with .contact-form wrapper */
.contact-form--cf7 .wpcf7 {
	margin: 0;
}

.contact-form--cf7 .wpcf7 p {
	margin: 0 0 14px;
}

.contact-form--cf7 .wpcf7 label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #1a1a1a;
	margin-bottom: 6px;
}

.contact-form--cf7 .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not(.wpcf7-checkbox):not(.wpcf7-radio) {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(26, 26, 26, 0.18);
	border-radius: 4px;
	background: #ffffff;
	font-family: inherit;
	font-size: 14px;
	color: #1a1a1a;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.contact-form--cf7 .wpcf7-form-control:not(.wpcf7-submit):focus {
	outline: 0;
	border-color: #1a1a1a;
}

.contact-form--cf7 .wpcf7-textarea {
	resize: vertical;
	min-height: 130px;
}

.contact-form--cf7 .wpcf7-submit {
	background: #1a1a1a;
	color: #ffffff;
	border: 1px solid #1a1a1a;
	padding: 14px 26px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	letter-spacing: 0.3px;
	font-family: inherit;
	width: 100%;
}

.contact-form--cf7 .wpcf7-submit:hover {
	background: transparent;
	color: #1a1a1a;
}

/* CF7 validation messages */
.contact-form--cf7 .wpcf7-not-valid-tip {
	color: #8a2222;
	font-size: 12px;
	margin-top: 4px;
	display: block;
}

.contact-form--cf7 .wpcf7-response-output {
	padding: 14px 16px;
	border-radius: 4px;
	margin: 14px 0 0;
	font-size: 14px;
	border: 1px solid transparent;
}

.contact-form--cf7 .wpcf7 form.sent .wpcf7-response-output {
	background: #e7f3ec;
	color: #1d6b3b;
	border-color: #c2deca;
}

.contact-form--cf7 .wpcf7 form.invalid .wpcf7-response-output,
.contact-form--cf7 .wpcf7 form.failed .wpcf7-response-output,
.contact-form--cf7 .wpcf7 form.spam .wpcf7-response-output {
	background: #fce8e8;
	color: #8a2222;
	border-color: #f0c2c2;
}

.contact-form--cf7 .wpcf7-spinner {
	background-color: #1a1a1a;
}

.form-message {
	padding: 14px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
}

.form-message--success {
	background: #e7f3ec;
	color: #1d6b3b;
	border: 1px solid #c2deca;
}

.form-message--error {
	background: #fce8e8;
	color: #8a2222;
	border: 1px solid #f0c2c2;
}

/* --- Footer --- */
.site-footer {
	background: #3f4447;
	color: #ffffff;
	padding: 56px 0 0;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
}

.site-footer h4 {
	color: #ffffff;
	font-size: 13px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin: 0 0 16px;
	font-weight: 600;
	opacity: 0.95;
}

.site-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.site-footer li {
	margin-bottom: 8px;
}

.site-footer a {
	color: #ffffff;
	opacity: 0.7;
	font-size: 14px;
	transition: opacity 0.2s ease;
}

.site-footer a:hover {
	opacity: 1;
}

.site-footer__about {
	max-width: 320px;
}

.site-footer__about p {
	color: #ffffff;
	opacity: 0.7;
	font-size: 14px;
	line-height: 1.65;
	margin: 0;
}

.footer-contact-list li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	flex-shrink: 0;
}

.footer-contact-icon svg {
	width: 13px;
	height: 13px;
	stroke: #ffffff;
	stroke-width: 1.8;
	fill: none;
	opacity: 0.85;
}

.social-links {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.social-links a {
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition: all 0.2s ease;
}

.social-links a:hover {
	background: #ffffff;
	border-color: #ffffff;
}

.social-links svg {
	width: 16px;
	height: 16px;
	fill: #ffffff;
}

.social-links a:hover svg {
	fill: #1a1a1a;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 22px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.site-footer__bottom p {
	margin: 0;
	color: #ffffff;
	opacity: 0.55;
	font-size: 13px;
}

.site-footer__slogan {
	font-style: italic;
	color: #ffffff;
	opacity: 0.5;
	font-size: 13px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
	.section { padding: 56px 0; }

	.two-col,
	.contact-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.mission-row {
		grid-template-columns: 1fr;
	}

	.mission-image {
		min-height: 300px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.home-hero__stats {
		flex-wrap: wrap;
		gap: 24px;
	}
}

@media (max-width: 720px) {
	.site-header__logo {
		height: 120px;
	}

	.mobile-toggle {
		display: block;
	}

	.primary-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: rgba(0, 0, 0, 0.95);
		backdrop-filter: blur(8px);
		flex-direction: column;
		padding: 16px 24px 24px;
		gap: 14px;
		z-index: 50;
	}

	.primary-nav.is-open {
		display: flex;
	}

	.site-header__cta .site-header__phone {
		display: none;
	}

	.site-header__inner {
		position: relative;
	}

	.home-hero {
		min-height: 520px;
	}

	.home-hero__content {
		padding: 180px 0 64px;
	}

	.inner-hero__content {
		padding: 180px 28px 50px;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.mission-block {
		padding: 40px 24px;
	}

	.contact-form {
		padding: 24px;
	}
}

@media (max-width: 480px) {
	.site-header__logo {
		height: 96px;
	}
	.home-hero__content {
		padding: 150px 0 56px;
	}
	.inner-hero__content {
		padding: 150px 24px 40px;
	}
	.btn-group {
		flex-direction: column;
		align-items: stretch;
	}
	.btn {
		text-align: center;
	}
}