/*
Theme Name: NYC Plumbing Solutions
Theme URI: https://nycplumbingsolutions24-7.com/
Author: NYC Plumbing Solutions
Description: Fast, SEO-ready theme for NYC Plumbing Solutions, a 24/7 emergency plumber in New York City. Built-in meta tags, Plumber schema, FAQ markup, click-to-call everywhere, quick request and contact forms, and one-click page setup.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: nyc-plumbing
*/

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("assets/fonts/public-sans-variable.woff2") format("woff2-variations"), url("assets/fonts/public-sans-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--navy: #0c2340;
	--navy-2: #13325a;
	--red: #e0301e;
	--red-2: #c22413;
	--yellow: #ffcf4a;
	--sky: #e9f1f8;
	--text: #33475b;
	--steel: #55677a;
	--line: #dbe4ec;
	--white: #ffffff;
	--pad: clamp(16px, 3.2vw, 56px);
	--r: 14px;
	--head: "Barlow Condensed", "Arial Narrow", sans-serif;
}

/* ---------- Base (desktop text is large on purpose) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 25px; line-height: 1.6; color: var(--navy); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; line-height: 1.04; margin: 0 0 .4em; color: inherit; }
p { margin: 0 0 1em; }
.np-wrap { padding-left: var(--pad); padding-right: var(--pad); }
.np-sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 10px; left: 10px; width: auto; height: auto; clip: auto; z-index: 100; background: #fff; padding: 10px 16px; }
.np-muted { color: var(--steel); }

/* ---------- Buttons ---------- */
.np-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 800; text-decoration: none; border-radius: 12px; white-space: nowrap; border: 0; cursor: pointer; font-family: inherit; font-size: 24px; padding: 16px 26px; line-height: 1.2; }
.np-btn .np-ico { width: 1em; height: 1em; flex: none; }
.np-btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(224, 48, 30, .28); }
.np-btn--red:hover { background: var(--red-2); }
.np-btn--lg { font-size: 28px; padding: 20px 32px; }
.np-btn--sm { font-size: 22px; padding: 14px 22px; }
.np-btn--ghost { border: 2px solid currentColor; background: transparent; color: inherit; }
.np-btn--white { background: #fff; color: var(--red); font-size: 30px; padding: 20px 34px; }
.np-btn--outline { border: 2px solid var(--navy); color: var(--navy); background: #fff; }

/* ---------- Red top bar ---------- */
.np-alert { background: var(--red); color: #fff; font-size: 22px; font-weight: 600; }
.np-alert .np-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.np-alert a { font-weight: 800; text-decoration: none; white-space: nowrap; }
.np-alert__dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #fff; margin-right: 12px; animation: np-pulse 1.6s ease-in-out infinite; }
@keyframes np-pulse { 50% { opacity: .3; } }

/* ---------- Header ---------- */
.np-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .np-header { top: 32px; }
.np-header .np-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 110px; }
.np-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.np-brand__logo { height: 66px; width: auto; }
.np-brand__mark { width: 66px; height: 66px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 26px; flex: none; }
.np-brand__text b { font-family: var(--head); font-size: 38px; line-height: 1; display: block; }
.np-brand__text small { font-size: 18px; color: var(--steel); font-weight: 600; }
.np-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; }
.np-nav a { text-decoration: none; font-size: 24px; font-weight: 600; }
.np-nav a:hover, .np-nav .current-menu-item > a { color: var(--red); }
.np-nav .sub-menu { display: none; }
.np-hcall { display: flex; align-items: center; gap: 16px; }
.np-hcall__lbl { text-align: right; font-size: 17px; color: var(--steel); line-height: 1.2; }
.np-hcall__lbl b { display: block; color: var(--navy); font-size: 30px; font-family: var(--head); }
.np-menu-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--navy); cursor: pointer; }

/* ---------- Home hero ---------- */
.np-hero { position: relative; color: #fff; background: var(--navy) var(--np-hero) center / cover no-repeat; }
.np-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 35, 64, .96) 0%, rgba(12, 35, 64, .88) 45%, rgba(12, 35, 64, .5) 100%); }
.np-hero > .np-wrap { position: relative; display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.np-tag { display: inline-block; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 21px; margin-bottom: 22px; }
.np-hero h1 { font-size: clamp(60px, 7vw, 132px); margin: 0; }
.np-hero h1 em { font-style: normal; color: var(--yellow); }
.np-hero__lede { font-size: 28px; max-width: 900px; margin: 22px 0 34px; color: #dfe9f3; }
.np-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.np-hero .np-btn--ghost { color: #fff; }
.np-trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 40px 0 0; font-size: 22px; font-weight: 700; }
.np-trust li { display: flex; align-items: center; gap: 10px; }
.np-trust li::before { content: "✓"; width: 30px; height: 30px; border-radius: 50%; background: #2ec27e; display: grid; place-items: center; font-size: 18px; color: #fff; }

/* ---------- Page head (inner pages) ---------- */
.np-pagehead { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.np-pagehead .np-wrap { padding-top: 64px; padding-bottom: 64px; }
.np-pagehead h1 { font-size: clamp(54px, 6vw, 112px); margin: 0 0 16px; }
.np-pagehead p { font-size: 27px; color: #dfe9f3; max-width: 1100px; margin: 0 0 30px; }
.np-pagehead .np-btn--ghost { color: #fff; margin-left: 10px; }
.np-crumbs { font-size: 19px; color: #b9cbe0; margin-bottom: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.np-crumbs a { color: #fff; }

/* ---------- Borough strip ---------- */
.np-boros { background: var(--navy-2); color: #fff; }
.np-boros .np-wrap { display: flex; align-items: center; gap: 12px 40px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 24px; font-weight: 700; }
.np-boros .np-wrap span:first-child { color: var(--yellow); }

/* ---------- Content sections ---------- */
.np-content > * { margin: 0; }
.np-sec { padding: 100px 0; }
.np-sec--sky { background: var(--sky); }
.np-sec h2, .np-faq h2 { font-size: clamp(48px, 5vw, 92px); }
.np-sub { font-size: 26px; color: var(--steel); margin: 0 0 48px; max-width: 1100px; }
.np-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.np-card { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.np-card__ph { height: 340px; background: var(--sky) center / cover no-repeat; }
.np-card__body { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.np-card h3 { font-size: 46px; margin-bottom: 12px; }
.np-card p { color: var(--text); flex: 1; margin-bottom: 22px; }
.np-more { font-weight: 800; color: var(--red); text-decoration: none; font-size: 24px; }
.np-band { background: var(--red); color: #fff; }
.np-band .np-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.np-band h2 { font-size: clamp(44px, 4.4vw, 80px); margin: 0; }
.np-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.np-steps li { background: #fff; border-radius: 18px; padding: 36px; border: 1px solid var(--line); counter-increment: s; }
.np-steps li::before { content: counter(s); width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--head); font-size: 36px; font-weight: 800; margin-bottom: 18px; }
.np-steps b { display: block; font-family: var(--head); font-size: 42px; line-height: 1.05; margin-bottom: 8px; }
.np-steps p { margin: 0; color: var(--text); }
.np-review { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.np-review__face { width: 150px; height: 150px; border-radius: 50%; background: var(--sky) center / cover; }
.np-stars { color: #f5a800; font-size: 40px; letter-spacing: 4px; }
.np-review blockquote { margin: 8px 0 14px; font-size: 38px; line-height: 1.35; font-weight: 600; max-width: 1300px; }
.np-review cite { font-style: normal; font-size: 24px; color: var(--steel); font-weight: 700; }

/* FAQ (core Details blocks inside a group) */
.np-faq { padding: 100px var(--pad); }
.np-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 30px; margin: 0 0 14px; }
.np-faq summary { font-weight: 800; font-size: 30px; cursor: pointer; }
.np-faq details p { margin: 12px 0 0; color: var(--text); }
.np-sec--sky.np-faq { background: var(--sky); }

/* Service detail rows */
.np-svc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.np-svc--flip > :first-child { order: 2; }
.np-svc__ph { min-height: 520px; height: 100%; border-radius: 18px; background: var(--sky) center / cover no-repeat; }
.np-sec--sky .np-svc__ph { background-color: #d3e1ee; }
.np-card__ph--icon, .np-svc__ph--icon, .np-sec--sky .np-svc__ph--icon { background: linear-gradient(135deg, var(--navy), var(--navy-2)); display: grid; place-items: center; }
.np-svc p { color: var(--text); }
.np-ticks { list-style: none; padding: 0; margin: 0 0 32px; }
.np-ticks li { padding: 8px 0 8px 44px; position: relative; font-weight: 600; }
.np-ticks li::before { content: "✓"; position: absolute; left: 0; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 17px; }
.np-stats { display: flex; gap: 56px; margin: 10px 0 34px; }
.np-stats b { display: block; font-family: var(--head); font-size: 88px; line-height: 1; color: var(--red); }
.np-stats span { font-weight: 700; color: var(--steel); }

/* Contact */
.np-contact .np-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.np-bignum { font-family: var(--head); font-size: 72px; font-weight: 800; color: var(--red); text-decoration: none; display: block; margin: 0 0 10px; }
.np-contact__box { background: var(--sky); border-radius: 18px; padding: 36px; }

/* Legal / plain text */
.np-legal { max-width: 1200px; }
.np-legal h2 { font-size: 46px; margin-top: 1.2em; }
.np-legal p { color: var(--text); }

/* ---------- Forms ---------- */
.np-form { display: grid; gap: 12px; }
.np-form__title { font-size: 44px; margin: 0; }
.np-form__lede { font-size: 20px; color: var(--steel); margin: 0 0 6px; }
.np-form input[type=text], .np-form input[type=tel], .np-form input[type=email], .np-form textarea { width: 100%; font: inherit; font-size: 21px; padding: 16px 18px; border: 1px solid #c6d2dd; border-radius: 10px; background: #fff; color: var(--navy); }
.np-form textarea { min-height: 150px; resize: vertical; }
.np-form ::placeholder { color: #7f90a1; }
.np-form__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--steel); line-height: 1.45; }
.np-form__consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.np-form .np-btn { width: 100%; font-size: 25px; padding: 18px; }
.np-form__hp { position: absolute; left: -9999px; }
.np-hero__form .np-form { background: #fff; color: var(--navy); border-radius: 18px; padding: 34px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.np-notice { margin: 0; padding: 14px 16px; border-radius: 10px; font-size: 19px; font-weight: 600; }
.np-notice--ok { background: #e3f6ec; color: #135c36; }
.np-notice--err { background: #fde8e6; color: #8d1b10; }

/* Posts list */
.np-posts article { padding: 24px 0; border-bottom: 1px solid var(--line); }
.np-posts h2 { font-size: 44px; }

/* ---------- Footer ---------- */
.np-footer { background: var(--navy); color: #c9d7e5; font-size: 21px; }
.np-footer .np-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 40px; }
.np-footer h2 { color: #fff; font-size: 34px; }
.np-footer ul { list-style: none; margin: 0; padding: 0; }
.np-footer li { margin: 0 0 8px; }
.np-footer a { text-decoration: none; }
.np-footer a:hover { color: #fff; text-decoration: underline; }
.np-footer__phone { font-family: var(--head); font-size: 40px; font-weight: 800; color: #fff; }
.np-social { display: flex; gap: 12px; }
.np-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; }
.np-footer__copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 22px; font-size: 18px; }
.np-mbar { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
	.np-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 10px var(--pad) 20px; }
	.np-nav.is-open { display: block; }
	.np-nav ul { flex-direction: column; gap: 4px; }
	.np-nav a { display: block; padding: 10px 0; }
	.np-menu-toggle { display: inline-flex; }
	.np-hero > .np-wrap, .np-contact .np-wrap, .np-svc { grid-template-columns: 1fr; }
	.np-svc--flip > :first-child { order: 0; }
	.np-svc__ph { min-height: 340px; }
	.np-cards, .np-steps { grid-template-columns: 1fr; }
	.np-footer .np-wrap { grid-template-columns: 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
	html { scroll-padding-top: 90px; }
	body { font-size: 19px; padding-bottom: 76px; }
	.admin-bar .np-header { top: 0; }
	.np-alert { font-size: 15px; text-align: center; }
	.np-alert .np-wrap { justify-content: center; }
	.np-alert a { display: none; }
	.np-alert__dot { width: 9px; height: 9px; margin-right: 8px; }
	.np-header .np-wrap { min-height: 76px; gap: 10px; }
	.np-brand__mark { width: 46px; height: 46px; font-size: 17px; border-radius: 10px; }
	.np-brand__logo { height: 46px; }
	.np-brand__text b { font-size: 24px; }
	.np-brand__text small, .np-hcall__lbl, .np-hcall .np-btn { display: none; }
	.np-nav a { font-size: 20px; }
	.np-hero > .np-wrap { padding-top: 44px; padding-bottom: 44px; gap: 32px; }
	.np-hero h1 { font-size: 52px; }
	.np-tag { font-size: 15px; }
	.np-hero__lede { font-size: 20px; }
	.np-btn { font-size: 19px; padding: 14px 20px; }
	.np-btn--lg { font-size: 21px; padding: 16px 22px; }
	.np-btn--white { font-size: 21px; }
	.np-trust { font-size: 17px; gap: 10px 20px; margin-top: 26px; }
	.np-trust li::before { width: 24px; height: 24px; font-size: 14px; }
	.np-hero__form .np-form { padding: 24px; }
	.np-form__title { font-size: 34px; }
	.np-form input[type=text], .np-form input[type=tel], .np-form input[type=email], .np-form textarea { font-size: 17px; padding: 13px 14px; }
	.np-form .np-btn { font-size: 20px; padding: 15px; }
	.np-form__consent { font-size: 14px; }
	.np-pagehead .np-wrap { padding-top: 40px; padding-bottom: 40px; }
	.np-pagehead h1 { font-size: 48px; }
	.np-pagehead p { font-size: 19px; }
	.np-crumbs { font-size: 15px; }
	.np-boros .np-wrap { font-size: 16px; gap: 6px 16px; padding-top: 14px; padding-bottom: 14px; }
	.np-sec, .np-faq { padding-top: 56px; padding-bottom: 56px; }
	.np-sec h2, .np-faq h2 { font-size: 42px; }
	.np-sub { font-size: 19px; margin-bottom: 30px; }
	.np-card__ph { height: 220px; }
	.np-card h3 { font-size: 34px; }
	.np-more { font-size: 19px; }
	.np-band h2 { font-size: 36px; }
	.np-steps li { padding: 26px; }
	.np-steps b { font-size: 30px; }
	.np-review { grid-template-columns: 1fr; gap: 20px; }
	.np-review__face { width: 96px; height: 96px; }
	.np-review blockquote { font-size: 24px; }
	.np-stars { font-size: 28px; }
	.np-faq summary { font-size: 21px; }
	.np-faq details { padding: 18px 20px; }
	.np-ticks li { padding-left: 38px; }
	.np-ticks li::before { width: 26px; height: 26px; top: 9px; font-size: 14px; }
	.np-stats b { font-size: 60px; }
	.np-bignum { font-size: 46px; }
	.np-contact__box { padding: 22px; }
	.np-legal h2 { font-size: 32px; }
	.np-footer { font-size: 17px; }
	.np-footer h2 { font-size: 28px; }
	.np-footer__phone { font-size: 32px; }
	.np-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 10px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(12, 35, 64, .1); }
	.np-mbar .np-btn { flex: 1; font-size: 19px; padding: 13px; }
}

@media (prefers-reduced-motion: reduce) { .np-alert__dot { animation: none; } }
