/* =========================================================================
   Painters In NC — theme.css
   Mobile-first responsive foundation + component/section styles.
   Breakpoints (min-width only): 640 / 768 / 1024 / 1280.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
	--brand-blue: #1E8FE0;
	--brand-blue-light: #34AAFB;
	--action-green: #7CDA24;
	--action-green-dark: #5FAF18;
	--teal: #25E4A2;
	--ink: #0F2433;
	--body: #1F2A33;
	--muted: #5B6B76;
	--surface: #F2F6FA;
	--border: #E1E8EE;
	--white: #FFFFFF;

	--font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius: 14px;
	--radius-sm: 10px;
	--shadow-sm: 0 2px 8px rgba(15, 36, 51, 0.06);
	--shadow-md: 0 12px 30px rgba(15, 36, 51, 0.10);
	--shadow-lg: 0 22px 50px rgba(15, 36, 51, 0.16);

	--header-h: 72px;
	--maxw: 1200px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* -------------------------------------------------------------------------
   2. Reset / base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, video, iframe, svg { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--action-green-dark); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	color: var(--ink);
	line-height: 1.15;
	margin: 0 0 0.5em;
	font-weight: 700;
}

p { margin: 0 0 1rem; }
ul { margin: 0; }

h1 { font-size: clamp(1.9rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

:focus-visible {
	outline: 3px solid var(--brand-blue);
	outline-offset: 2px;
	border-radius: 4px;
}

/* -------------------------------------------------------------------------
   3. Layout utilities (built once, reused everywhere)
   ------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: clamp(16px, 5vw, 48px);
}

.section { padding-block: clamp(48px, 7vw, 96px); }

.grid-2, .grid-3, .grid-4 {
	display: grid;
	gap: clamp(18px, 3vw, 30px);
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.grid-2 { grid-template-columns: repeat(2, 1fr); }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.grid-3 { grid-template-columns: repeat(3, 1fr); }
	.grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.section-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-head__sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* -------------------------------------------------------------------------
   4. Accessibility helpers
   ------------------------------------------------------------------------- */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--ink);
	color: var(--white);
	padding: 12px 18px;
	border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--white); }

/* -------------------------------------------------------------------------
   5. Buttons (ONE CTA color = green; primary = blue)
   ------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
	text-align: center;
}
.btn:hover { transform: translateY(-2px); }

/* CTA = action green bg + INK text (never white on green) */
.btn--cta {
	background: var(--action-green);
	color: var(--ink);
	box-shadow: var(--shadow-sm);
}
.btn--cta:hover { background: var(--action-green-dark); color: var(--ink); box-shadow: var(--shadow-md); }

/* Primary = brand blue bg + white text */
.btn--primary { background: var(--brand-blue); color: var(--white); }
.btn--primary:hover { background: #1576bd; color: var(--white); }

/* Outline (on dark hero) = blue-tinted outline + white text */
.btn--outline {
	background: rgba(255, 255, 255, 0.08);
	color: var(--white);
	border-color: rgba(255, 255, 255, 0.85);
}
.btn--outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn--lg { min-height: 54px; padding: 15px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.icon { flex: 0 0 auto; }

/* -------------------------------------------------------------------------
   6. Header
   ------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	border-bottom: 1px solid var(--border);
	transition: box-shadow 0.2s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--header-h);
}

.site-logo { display: inline-flex; align-items: center; }
.site-logo img { width: clamp(150px, 22vw, 200px); height: auto; }

.site-nav { display: flex; align-items: center; gap: 22px; }

.nav-menu {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.nav-menu a {
	display: inline-block;
	padding: 8px 12px;
	color: var(--ink);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: 8px;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a { color: var(--brand-blue); background: var(--surface); }

.site-header__actions { display: flex; align-items: center; gap: 14px; }

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--ink);
	font-family: var(--font-head);
	font-weight: 700;
	white-space: nowrap;
}
.header-phone .icon { color: var(--brand-blue); }
.header-phone:hover { color: var(--brand-blue); }

/* Mobile nav toggle */
.nav-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 48px;
	height: 48px;
	padding: 0 12px;
	background: transparent;
	border: 0;
	cursor: pointer;
}
.nav-toggle__bar {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--ink);
	border-radius: 2px;
	transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* Mobile-first: nav hidden behind toggle until >= 1024px */
@media (max-width: 1023px) {
	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--white);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow-md);
		padding: 12px clamp(16px, 5vw, 48px) 22px;
		transform: translateY(-120%);
		transition: transform 0.28s var(--ease);
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
	}
	.site-nav.is-open { transform: translateY(0); }
	.nav-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav-menu a { padding: 13px 12px; font-size: 1.05rem; border-radius: 10px; }
	.site-header__actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 12px; }
	.header-phone { justify-content: center; padding: 12px; background: var(--surface); border-radius: 10px; }
	.header-cta { width: 100%; }
}

@media (min-width: 1024px) {
	.nav-toggle { display: none; }
}

/* -------------------------------------------------------------------------
   7. Reveal-on-scroll
   ------------------------------------------------------------------------- */
[data-reveal] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
	will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* -------------------------------------------------------------------------
   8. HERO
   ------------------------------------------------------------------------- */
.hero {
	position: relative;
	background-image: var(--hero-img);
	background-size: cover;
	background-position: center;
	color: var(--white);
	isolation: isolate;
}
.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(100deg, rgba(15, 36, 51, 0.90) 0%, rgba(15, 36, 51, 0.66) 48%, rgba(15, 36, 51, 0.30) 100%),
		linear-gradient(0deg, rgba(15, 36, 51, 0.55), rgba(15, 36, 51, 0.05));
}
.hero__inner {
	padding-block: clamp(56px, 11vw, 132px);
	/* leave a sliver of the next section visible */
	min-height: min(82vh, 760px);
	display: flex;
	align-items: center;
}
.hero__content { max-width: 760px; }
.hero__eyebrow {
	display: inline-block;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--brand-blue-light);
	background: rgba(255, 255, 255, 0.10);
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 6px 14px;
	border-radius: 999px;
	margin: 0 0 18px;
}
.hero__title { color: var(--white); margin-bottom: 16px; text-wrap: balance; }
.hero__sub {
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1rem, 1.4vw, 1.2rem);
	max-width: 620px;
	margin-bottom: 26px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.trust-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.trust-badges li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--white);
}
.trust-badges__tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--action-green);
	color: var(--ink);
	font-size: 0.8rem;
	font-weight: 700;
}

/* -------------------------------------------------------------------------
   9. PROBLEM
   ------------------------------------------------------------------------- */
.problem { background: var(--white); }
.problem__grid { margin-top: 8px; }

.pain {
	display: flex;
	gap: 16px;
	padding: clamp(20px, 3vw, 28px);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pain:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pain__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: rgba(30, 143, 224, 0.10);
	color: var(--brand-blue);
}
.pain h3 { margin-bottom: 6px; }
.pain__bad { color: var(--muted); margin-bottom: 8px; }
.pain__good { color: var(--ink); margin: 0; }
.pain__good strong { color: var(--action-green-dark); }

/* -------------------------------------------------------------------------
   10. PROOF
   ------------------------------------------------------------------------- */
.proof {
	background: var(--ink);
	color: var(--white);
	background-image:
		radial-gradient(900px 320px at 12% -10%, rgba(52, 170, 251, 0.20), transparent 60%),
		radial-gradient(700px 320px at 100% 120%, rgba(124, 218, 36, 0.16), transparent 55%);
}
.proof__stats { margin-bottom: clamp(28px, 4vw, 44px); text-align: center; }
.stat {
	padding: 18px 10px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.10);
}
.stat__num {
	display: block;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	color: var(--brand-blue-light);
	line-height: 1.05;
}
.stat__label { display: block; color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; margin-top: 4px; }

.reviews-card {
	max-width: 560px;
	margin-inline: auto;
	text-align: center;
	padding: 24px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius);
}
.reviews-card__stars { color: #FFC23B; font-size: 1.6rem; letter-spacing: 4px; line-height: 1; }
.reviews-card__text { font-family: var(--font-head); font-weight: 600; margin: 10px 0 4px; color: var(--white); }
.reviews-card__placeholder { color: rgba(255, 255, 255, 0.62); font-size: 0.82rem; margin: 0; font-style: italic; }

/* -------------------------------------------------------------------------
   11. SOLUTION / PROCESS
   ------------------------------------------------------------------------- */
.process { background: var(--surface); }
.process__steps {
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: step;
}
.step {
	position: relative;
	padding: 30px 22px 24px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num {
	position: absolute;
	top: -18px;
	left: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--brand-blue);
	color: var(--white);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.15rem;
	box-shadow: var(--shadow-sm);
}
.step h3 { margin: 10px 0 6px; }
.step p { color: var(--muted); margin: 0; }

/* -------------------------------------------------------------------------
   12. EVIDENCE / SERVICES
   ------------------------------------------------------------------------- */
.services { background: var(--white); }
.service-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	color: var(--ink);
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.service-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.service-card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.service-card__benefit { color: var(--muted); }
.service-card__link {
	margin-top: auto;
	padding-top: 8px;
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--brand-blue);
}
.service-card:hover .service-card__link { color: var(--action-green-dark); }

.service-card--cta {
	justify-content: center;
	background: var(--surface);
	border-style: dashed;
	border-color: var(--brand-blue);
}
.service-card--cta:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card--cta .service-card__body { gap: 10px; }
.service-card--cta .btn { margin-top: 6px; align-self: flex-start; }

.services__photo-note {
	margin: clamp(24px, 4vw, 40px) auto 0;
	max-width: 760px;
	text-align: center;
	color: var(--muted);
	font-size: 0.95rem;
	background: var(--surface);
	border: 1px dashed var(--border);
	border-radius: var(--radius-sm);
	padding: 14px 18px;
}

/* -------------------------------------------------------------------------
   13. ACTION / CLOSE
   ------------------------------------------------------------------------- */
.close {
	background: var(--action-green);
	background-image: linear-gradient(135deg, var(--action-green) 0%, var(--teal) 130%);
	color: var(--ink);
}
.close__grid { display: grid; gap: clamp(26px, 4vw, 48px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .close__grid { grid-template-columns: 1.05fr 0.95fr; } }

.close__title { color: var(--ink); }
.close__sub { color: rgba(15, 36, 51, 0.85); font-size: 1.08rem; max-width: 520px; }
.close__info { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.close__info li { color: var(--ink); }
.close__info a { color: var(--ink); text-decoration: underline; }
.close__info a:hover { color: var(--brand-blue); }
.close .btn--cta {
	/* CTA on a green band: invert to blue/white so it stays a single deliberate action */
	background: var(--brand-blue);
	color: var(--white);
}
.close .btn--cta:hover { background: #1576bd; color: var(--white); }

.close__formwrap { width: 100%; }
.estimate-form {
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: clamp(22px, 3vw, 32px);
}
.estimate-form__heading {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--ink);
	margin: 0 0 14px;
}
.estimate-form label {
	display: block;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--ink);
	margin: 12px 0 5px;
}
.estimate-form input,
.estimate-form select,
.estimate-form textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 13px;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--ink);
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.estimate-form textarea { min-height: 84px; resize: vertical; }
.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
	border-color: var(--brand-blue);
	box-shadow: 0 0 0 3px rgba(30, 143, 224, 0.16);
	outline: none;
}
.estimate-form .btn { margin-top: 18px; }
.estimate-form__reassure { color: var(--muted); font-size: 0.85rem; text-align: center; margin: 12px 0 0; }

/* -------------------------------------------------------------------------
   14. Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.site-footer__grid {
	display: grid;
	gap: clamp(24px, 4vw, 40px);
	grid-template-columns: 1fr;
	padding-block: clamp(40px, 6vw, 72px);
}
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.site-footer__logo {
	width: 190px;
	background: var(--white);
	padding: 10px 14px;
	border-radius: 10px;
	margin-bottom: 14px;
}
.site-footer__tag { color: rgba(255, 255, 255, 0.78); max-width: 340px; }
.site-footer__heading {
	color: var(--white);
	font-size: 1.05rem;
	margin: 0 0 12px;
}
.site-footer__col + .site-footer__col .site-footer__heading:nth-of-type(2) { margin-top: 20px; }
.site-footer__list { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 7px; }
.site-footer__list a { color: rgba(255, 255, 255, 0.82); }
.site-footer__list a:hover { color: var(--brand-blue-light); }
.site-footer__list address { font-style: normal; }
.site-footer__note { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; margin-top: 10px; }

.site-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-block: 18px;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
}
.site-footer__bar p { margin: 0; }

/* -------------------------------------------------------------------------
   15. Sticky mobile click-to-call bar (<= 768px only)
   ------------------------------------------------------------------------- */
.mobile-call-bar { display: none; }

@media (max-width: 768px) {
	.mobile-call-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 200;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		min-height: 56px;
		background: var(--action-green);
		color: var(--ink);
		font-family: var(--font-head);
		font-weight: 700;
		font-size: 1.05rem;
		box-shadow: 0 -6px 18px rgba(15, 36, 51, 0.18);
	}
	.mobile-call-bar:hover { background: var(--action-green-dark); color: var(--ink); }
	.mobile-call-bar .icon { color: var(--ink); }
	/* keep content clear of the fixed bar */
	body { padding-bottom: 56px; }
}

/* -------------------------------------------------------------------------
   16. Generic page / post content (index.php, page.php)
   ------------------------------------------------------------------------- */
.page-header { margin-bottom: 24px; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-bottom: 1rem; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content img { border-radius: var(--radius-sm); margin: 1rem 0; }
.entry-content a { text-decoration: underline; }
