/*
Theme Name: Water Sewer Chicago
Theme URI: https://watersewerchicago.com
Description: One-page company site for a licensed and insured plumbing contractor that connects homes to city water and sewer mains in Chicago and Chicagoland.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: watersewer-chicago
*/

:root {
	--navy: #0b2a4a;
	--navy-2: #0f355c;
	--blue: #1565c0;
	--sky: #4fb3ff;
	--yellow: #f5b301;
	--ink: #14202b;
	--muted: #51606e;
	--line: #dbe2e9;
	--paper: #ffffff;
	--mist: #f2f5f8;
	--radius: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
}

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

a { color: var(--blue); }

h1, h2, h3 {
	margin: 0 0 .5em;
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -.02em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); max-width: 22ch; }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 12px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Buttons */
.btn {
	display: inline-block;
	padding: 13px 22px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .12s ease, background-color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffc524; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--navy);
	color: #fff;
	border-bottom: 3px solid var(--yellow);
}
.header-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -.01em;
	text-decoration: none;
}
.brand { min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; color: var(--sky); flex: none; }
.custom-logo-link { display: flex; align-items: center; flex: none; }
.custom-logo { max-height: 52px; max-width: 240px; width: auto; height: auto; border-radius: 4px; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a { color: #d5e2ef; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.site-nav a:hover { color: #fff; }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: end; }
.hero-copy { padding-bottom: 72px; }
.eyebrow {
	margin: 0 0 14px;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--yellow);
}
.eyebrow.dark { color: var(--blue); }
.lead { font-size: 1.15rem; color: #cfdcea; max-width: 54ch; }
.lead.dark { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { margin: 0; align-self: end; }
.hero-art svg { width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
.art-label { font: 700 11px system-ui, sans-serif; letter-spacing: .1em; fill: #b9cbdd; }
.art-blue { fill: var(--sky); }
.art-yellow { fill: var(--yellow); }

/* Hero with a background photo (Customize > Home page photo) */
.hero.has-photo {
	background-image: linear-gradient(90deg, rgba(11, 42, 74, .94) 0%, rgba(11, 42, 74, .78) 55%, rgba(11, 42, 74, .45) 100%), var(--hero-img);
	background-size: cover;
	background-position: center;
}
.hero.has-photo .hero-grid { grid-template-columns: 1fr; }
.hero.has-photo .hero-copy { max-width: 700px; padding: 40px 0 112px; }
.hero.has-photo .lead { color: #e6eef6; }

/* Trust bar */
.trust { background: var(--yellow); color: var(--ink); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-row > div { padding: 20px 20px 20px 0; }
.trust-row > div + div { padding-left: 20px; border-left: 1px solid rgba(20, 32, 43, .2); }
.trust-row strong { display: block; font-size: 1.05rem; font-weight: 800; }
.trust-row span { font-size: .9rem; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--mist); }
.section-navy { background: var(--navy); color: #fff; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.card p { margin: 0; color: var(--muted); }
.card-tag {
	display: inline-block;
	margin-bottom: 14px;
	padding: 3px 10px;
	border-radius: 3px;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.tag-blue { background: #dcedfb; color: #0d47a1; }
.tag-yellow { background: #fdecc0; color: #6b4a00; }
.tag-dark { background: #e3e8ee; color: var(--navy); }

/* Process steps */
.steps { list-style: none; counter-reset: step; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 4px solid var(--navy); }
.steps li::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	margin-bottom: 8px;
	font-size: 2rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--blue);
}
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Service area */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.area-grid h2 { margin: 0; }
.area-grid .lead { margin: 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 28px; border-top: 1px solid var(--line); }
summary { padding: 18px 32px 18px 0; font-weight: 700; font-size: 1.08rem; cursor: pointer; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--blue); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); padding-right: 32px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-list li { padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; }
.contact-list span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.contact-form { padding: 32px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: var(--radius); }
.contact-form label { display: block; margin-bottom: 16px; font-size: .9rem; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 11px 12px;
	border: 1px solid #b8c4d0;
	border-radius: 4px;
	background: #fff;
	color: var(--ink);
	font: inherit;
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 14px; border-radius: 4px; font-weight: 600; }
.notice-ok { background: #e2f4e8; color: #14532d; }
.notice-err { background: #fde8e6; color: #8a1c13; }

/* Inner pages */
.entry h1 { margin-bottom: .6em; }
.entry h2 { max-width: none; margin-top: 1.4em; }

/* Footer */
.site-footer { background: #071d33; color: #b9cbdd; padding: 48px 0 24px; font-size: .95rem; }
.footer-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-name { color: #fff; font-weight: 800; font-size: 1.15rem; }
.footer-text { max-width: 46ch; }
.footer-contact { text-align: right; }
.footer-contact p { margin: 0 0 4px; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.footer-legal p { margin: 0; }


/* Tablet and phone */
@media (max-width: 760px) {
	.site-nav { display: none; }
	.header-row { min-height: 60px; padding: 10px 0; }
	.brand span { white-space: normal; line-height: 1.2; }
}

@media (max-width: 900px) {
	.hero { padding-top: 48px; }
	.hero-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
	.hero-copy { padding-bottom: 0; }
	.trust-row { grid-template-columns: 1fr 1fr; }
	.trust-row > div { padding: 16px 16px 16px 0; }
	.trust-row > div + div { padding-left: 0; border-left: 0; }
	.trust-row > div:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(20, 32, 43, .2); }
	.steps { grid-template-columns: 1fr 1fr; }
	.section { padding: 60px 0; }
	.footer-contact { text-align: left; }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.cards, .steps, .form-two { grid-template-columns: 1fr; }
	.form-two { gap: 0; }
	.contact-form { padding: 22px; }
	.brand { font-size: 1rem; }
	.custom-logo { max-height: 44px; max-width: 200px; }
	.wrap { width: min(1140px, 100% - 32px); }
	.section { padding: 48px 0; }
	.hero { padding-top: 36px; }
	.hero-actions { flex-direction: column; margin-top: 22px; }
	.hero-actions .btn { text-align: center; }
	.hero.has-photo .hero-copy { padding: 16px 0 56px; }
	.lead { font-size: 1.05rem; }

	/* Yellow bar: one item per row so longer texts stay readable */
	.trust-row { grid-template-columns: 1fr; }
	.trust-row > div, .trust-row > div + div, .trust-row > div:nth-child(even) { padding: 14px 0; border-left: 0; }
	.trust-row > div + div { border-top: 1px solid rgba(20, 32, 43, .2); }

	.card { padding: 22px; }
	.steps { gap: 20px; }
	summary { font-size: 1rem; }
	.contact-list a { font-size: 1.05rem; overflow-wrap: anywhere; }
	.footer-row { flex-direction: column; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn { transition: none; }
}
