/* =========================================================
   Foster Plumbing, LLC — modern single-page styles
   Design tokens, layout, components, and responsive rules.
   ========================================================= */

:root {
	/* Color */
	--brand:         #25AAE1;       /* original accent, kept */
	--brand-600:     #1F8FDF;
	--brand-700:     #1B7FA8;
	--brand-900:     #0F3B53;       /* deep navy-blue for emphasis */
	--ink:           #15222E;
	--ink-2:         #3A4A57;
	--muted:         #6A7A88;
	--surface:       #FFFFFF;
	--surface-2:     #F4F8FB;
	--surface-3:     #E9F2F8;
	--border:        #DBE6EE;
	--gold:          #F2B84B;       /* sparingly, e.g. review stars */
	--shadow-sm:     0 1px 2px rgba(15, 59, 83, 0.06);
	--shadow-md:     0 8px 24px rgba(15, 59, 83, 0.08);
	--shadow-lg:     0 20px 50px rgba(15, 59, 83, 0.14);

	/* Type */
	--font-sans:     ui-sans-serif, system-ui, -apple-system, "Segoe UI",
	                 Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display:  "Roboto Slab", ui-serif, Georgia, "Times New Roman", serif;

	/* Layout */
	--container:     1180px;
	--radius:        12px;
	--radius-sm:     8px;
	--radius-pill:   999px;
	--header-h:      72px;
}

/* ---------- Reset ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--surface);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--ink);
	line-height: 1.2;
	margin: 0 0 0.6em;
	font-weight: 700;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--ink-2); }
ul { margin: 0 0 1em; padding-left: 1.2em; }

/* ---------- Containers + sections ---------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--surface-2); }
.section-eyebrow {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--brand-700);
	margin-bottom: 12px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	border-radius: var(--radius-pill);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
	white-space: nowrap;
	text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
	background: var(--brand);
	color: #fff;
	box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-outline {
	background: transparent;
	color: var(--brand-700);
	border-color: var(--brand-700);
}
.btn-outline:hover { background: var(--brand-700); color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255,255,255,0.92);
	backdrop-filter: saturate(180%) blur(10px);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.site-header.scrolled {
	border-bottom-color: var(--border);
	box-shadow: var(--shadow-sm);
}
.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-weight: 700;
	font-family: var(--font-display);
	font-size: 1.05rem;
}
.brand img { height: 38px; width: auto; }
.brand:hover { color: var(--brand-700); }
.nav-links {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-links a {
	color: var(--ink-2);
	font-weight: 500;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	font-size: 0.97rem;
}
.nav-links a:hover, .nav-links a.is-active {
	color: var(--brand-700);
	background: var(--surface-2);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--ink);
	font-size: 1rem;
}
.nav-phone:hover { color: var(--brand-700); }
.nav-phone svg { width: 18px; height: 18px; color: var(--brand); }
.nav-toggle {
	display: none;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 10px;
	border-radius: var(--radius-sm);
	color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	color: #fff;
	min-height: 620px;
	display: grid;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
}
.hero::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(15,59,83,0.78) 0%, rgba(15,59,83,0.58) 50%, rgba(15,59,83,0.78) 100%),
	            url("images/bathroom.jpg") center/cover no-repeat;
	z-index: -1;
	transform: scale(1.02);
}
.hero-inner {
	max-width: 760px;
	padding: 100px 0 80px;
}
.hero h1 {
	color: #fff;
	margin-bottom: 16px;
}
.hero-lede {
	color: rgba(255,255,255,0.92);
	font-size: 1.25rem;
	margin-bottom: 32px;
	max-width: 580px;
	line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
	margin-top: 36px;
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
	color: rgba(255,255,255,0.85);
	font-size: 0.95rem;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

/* ---------- Service pillars (3 cards) ---------- */
.pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.pillar {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px 28px;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pillar:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: transparent;
}
.pillar-icon {
	width: 56px;
	height: 56px;
	border-radius: var(--radius-sm);
	background: var(--surface-3);
	color: var(--brand-700);
	display: grid;
	place-items: center;
	margin-bottom: 20px;
}
.pillar-icon svg { width: 30px; height: 30px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--muted); margin-bottom: 18px; }
.pillar a {
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.pillar a:hover { gap: 10px; }

/* ---------- Full service grid ---------- */
.svc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.svc-grid li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	color: var(--ink-2);
	font-size: 0.98rem;
}
.svc-grid li::before {
	content: "";
	flex: none;
	width: 6px; height: 6px;
	margin-top: 10px;
	border-radius: 50%;
	background: var(--brand);
}

/* ---------- About ---------- */
.about {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 56px;
	align-items: center;
}
.about-side {
	background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-700) 100%);
	color: #fff;
	border-radius: var(--radius);
	padding: 36px 32px;
	box-shadow: var(--shadow-md);
}
.about-side .stat { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.about-side .stat:last-child { margin-bottom: 0; }
.about-side .stat-num {
	font-family: var(--font-display);
	font-size: 2.4rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}
.about-side .stat-label { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.about-body h2 { margin-bottom: 18px; }

/* ---------- Reviews ---------- */
.reviews {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}
.review {
	margin: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 26px 24px;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
}
.review-stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; font-size: 0.95rem; }
.review blockquote {
	margin: 0 0 16px;
	font-size: 1rem;
	color: var(--ink-2);
	line-height: 1.6;
	flex: 1;
}
.review figcaption {
	font-weight: 600;
	color: var(--ink);
	font-size: 0.95rem;
}
.review figcaption span {
	display: block;
	font-weight: 400;
	color: var(--muted);
	font-size: 0.85rem;
	margin-top: 2px;
}

/* ---------- Contact ---------- */
.contact {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 40px;
	align-items: stretch;
}
.contact-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 36px;
	box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-top: 0; }
.contact-list {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
	display: grid;
	gap: 14px;
}
.contact-list li {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--ink-2);
}
.contact-list .icon {
	width: 40px; height: 40px;
	border-radius: var(--radius-sm);
	background: var(--surface-3);
	color: var(--brand-700);
	display: grid; place-items: center;
	flex: none;
}
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list .label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 2px;
}
.contact-list a { color: var(--ink); font-weight: 600; }
.contact-list a:hover { color: var(--brand-700); }
.contact-cta {
	background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-700) 100%);
	color: #fff;
	border-radius: var(--radius);
	padding: 36px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-shadow: var(--shadow-md);
}
.contact-cta h3 { color: #fff; font-size: 1.6rem; margin-bottom: 12px; }
.contact-cta p { color: rgba(255,255,255,0.88); margin-bottom: 24px; }
.contact-cta .btn { align-self: flex-start; }
.contact-cta .btn-primary { background: #fff; color: var(--brand-900); }
.contact-cta .btn-primary:hover { background: var(--surface-2); color: var(--brand-900); }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--ink);
	color: rgba(255,255,255,0.7);
	padding: 40px 0 32px;
	font-size: 0.95rem;
}
.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-family: var(--font-display); }
.footer-brand img { height: 30px; filter: brightness(0) invert(1); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: #fff; }
.footer-meta { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* ---------- Skip link (a11y) ---------- */
.skip {
	position: absolute;
	left: -9999px;
	top: auto;
	overflow: hidden;
}
.skip:focus {
	left: 16px; top: 16px;
	background: #fff; color: var(--ink);
	padding: 10px 14px; border-radius: 6px;
	z-index: 9999;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.pillars { grid-template-columns: 1fr 1fr; }
	.about   { grid-template-columns: 1fr; gap: 32px; }
	.contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	section { padding: 56px 0; }
	.hero { min-height: 540px; }
	.hero-inner { padding: 60px 0; }
	.pillars { grid-template-columns: 1fr; }
	.nav-links, .nav-phone { display: none; }
	.nav-toggle { display: inline-flex; }
	.nav-cta { gap: 6px; }
	.site-header.menu-open .nav-links {
		display: flex;
		position: absolute;
		top: var(--header-h);
		left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		background: #fff;
		border-bottom: 1px solid var(--border);
		padding: 12px;
		gap: 4px;
		box-shadow: var(--shadow-md);
	}
	.site-header.menu-open .nav-links a {
		padding: 14px 16px;
		border-radius: var(--radius-sm);
	}
	.footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	html { scroll-behavior: auto; }
}
