/*
Theme Name: Poo's the Boss
Theme URI: https://poostheboss.com/
Author: Starke Solutions
Description: Custom theme for Poo's the Boss — Pet Waste Solutions in Chicago. Page templates match the site's existing page slugs, so each page picks up its design automatically. Phone numbers, map and before/after photos are set in Appearance › Customize › Poo's the Boss.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: poos-the-boss
*/

:root {
	--ink: #16201A;
	--body: #3D4A42;
	--muted: #4A5850;
	--ground: #F6F8F4;
	--line: #E3E8E1;
	--field: #CBD3CC;
	--orange: #FF6600;
	--orange-soft: #FFF1E6;
	--orange-text: #9A3A00;
	--green: #1F4A33;
	--green-soft: #DCE6DA;
	--white: #FFFFFF;
	--font-head: "Fredoka", "Inter", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 24px;
	--shadow: 0 12px 32px rgba(22, 32, 26, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-text); }
a:hover { color: var(--ink); }
input, textarea, select, button { font: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: var(--white); padding: 12px 16px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 900px; }
.container--article { max-width: 780px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--ground { background: var(--ground); }
.section--green { background: var(--green); color: var(--white); }
.section--border { border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 32px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split--top { align-items: flex-start; }
.split > .grow-2 { flex: 2 1 560px; min-width: 0; }
.split > .grow-1 { flex: 1 1 400px; min-width: 0; }
.split > .grow-sm { flex: 1 1 320px; min-width: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(var(--min, 240px), 1fr)); }
.grid--gap-lg { gap: 24px; }
.row-between { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }

/* ---------- Type ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-text); margin: 0; }
.section--green .eyebrow { color: #FFB27A; }
.pill { align-self: flex-start; display: inline-block; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--green); text-decoration: none; }
.h1, .h2, .h3 { font-family: var(--font-head); margin: 0; line-height: 1.05; }
.h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; }
.h1--xl { font-size: clamp(44px, 7vw, 68px); }
.h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; line-height: 1.1; }
.h3 { font-size: 26px; font-weight: 600; line-height: 1.2; }
.lead { font-size: 19px; line-height: 1.6; color: var(--body); margin: 0; max-width: 620px; }
.section--green .lead { color: #DCE7DF; }
.text { font-size: 17px; line-height: 1.65; color: var(--body); margin: 0; }
.small { font-size: 14px; color: var(--muted); margin: 0; }
.section--green .small { color: #C9D8CE; }
.strong-line { font-size: 18px; font-weight: 700; margin: 0; }
.center { text-align: center; align-items: center; }
.center .lead { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 16px; padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer; line-height: 1.2; }
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: #E85C00; color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #2E3A33; color: var(--white); }
.btn--outline { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); padding: 14.5px 24px; }
.btn--small { font-size: 14px; padding: 12px 18px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 700; text-decoration: none; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ink); color: var(--white); font-size: 14px; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.topbar__call { display: flex; align-items: center; gap: 8px; }
.topbar__call span { color: #C9D3CC; }
.topbar__call a { color: var(--white); font-weight: 700; text-decoration: none; letter-spacing: 0.02em; }
.topbar .btn { padding: 8px 16px; font-size: 13px; letter-spacing: 0.06em; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.site-header .container { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 48px; height: 48px; border-radius: 14px; background: var(--orange); display: flex; align-items: center; justify-content: center; flex: 0 0 48px; }
.brand__logo { width: 76px; height: 76px; flex: 0 0 76px; margin: -6px 0; }
.site-footer__logo { width: 96px; height: 96px; margin-bottom: 8px; }
@media (max-width: 640px) { .brand__logo { width: 60px; height: 60px; flex-basis: 60px; } .brand__name { font-size: 22px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 26px; }
.brand__tag { font-size: 12px; color: var(--muted); font-weight: 500; }
.custom-logo { max-height: 64px; width: auto; }
.menu-toggle { display: none; background: var(--ground); border: 0; border-radius: 12px; padding: 12px 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 10px; }
.primary-nav a:hover { background: var(--ground); color: var(--ink); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a, .primary-nav .current-menu-ancestor > a { background: var(--orange-soft); color: var(--orange-text); }
.primary-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; flex-direction: column; align-items: stretch; z-index: 60; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: flex; }
.primary-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.primary-nav .sub-menu a { white-space: nowrap; }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.primary-nav .sub-menu .menu-item-has-children > a::after { transform: translateY(-1px) rotate(-45deg); }

@media (max-width: 960px) {
	.menu-toggle { display: inline-block; }
	.primary-nav { display: none; width: 100%; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; }
	.primary-nav .sub-menu, .primary-nav li:hover > .sub-menu { display: none; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.primary-nav li.is-open > .sub-menu { display: flex; }
}

/* ---------- Cards ---------- */
.card { background: var(--white); border-radius: var(--radius); padding: 32px; }
.card--ground { background: var(--ground); }
.card--line { border: 1px solid var(--line); }
.card--shadow { box-shadow: var(--shadow); }
.card--dark { background: var(--ink); color: var(--white); }
.quote { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.quote blockquote { margin: 0; font-size: 20px; line-height: 1.45; font-weight: 500; }
.quote figcaption { font-size: 14px; font-weight: 600; color: var(--muted); }
.quote--float { margin: -40px 24px 0; position: relative; padding: 20px 22px; }
.service-card { text-decoration: none; color: var(--ink); background: var(--ground); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.service-card:hover { color: var(--ink); background: #EEF3EC; }
.service-card .label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.service-card .more { font-weight: 700; color: var(--orange-text); }
.trust { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 28px 0; }
.trust div { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 15px; }
.audience-card { background: var(--white); border-radius: var(--radius); overflow: hidden; }
.audience-card .ph { height: 200px; background: #B9CDB3; }
.audience-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.audience-card h3 { padding: 22px 26px; }

/* ---------- Pricing ---------- */
.price-card { border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; background: var(--white); color: var(--ink); }
.price-card--accent { background: var(--orange); border-color: var(--orange); }
.price-card--outline { outline: 3px solid var(--orange); border-color: transparent; }
.price-card__label { font-size: 15px; font-weight: 700; margin: 0; }
.price-card__price { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1; }
.price-card__price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-card--accent .price-card__price small { color: var(--ink); }
.price-card__sub { font-size: 15px; color: var(--muted); margin: 0; }
.price-card .btn { margin-top: auto; }
.price-card--big .price-card__price { font-size: 52px; }

/* ---------- Lists ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.checklist li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.55; }
.checklist--compact li { padding: 0 0 14px; border: 0; font-size: 16px; gap: 12px; }
.checklist svg { flex: 0 0 22px; margin-top: 2px; }
.lined { border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 18px; }
.steps__num { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.steps h3 { margin: 0 0 4px; font-size: 19px; }
.steps p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.link-list { display: flex; flex-direction: column; }
.link-list a { border-bottom: 1px solid var(--line); padding: 16px 0; display: flex; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none; }
.link-list a span { color: var(--orange-text); }
.link-list a:hover { color: var(--orange-text); }
.phone-list { list-style: none; margin: 0; padding: 0; }
.phone-list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid #2E3A33; font-size: 16px; }
.phone-list li:last-child { border-bottom: 0; }
.phone-list span { color: #C9D3CC; }
.phone-list a { color: var(--white); font-weight: 700; text-decoration: none; }
.tollfree { background: var(--orange); color: var(--ink); text-decoration: none; border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.tollfree:hover { color: var(--ink); }
.tollfree small { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.tollfree strong { font-family: var(--font-head); font-size: 28px; }

/* ---------- Photos / placeholders ---------- */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ba__tile { position: relative; height: 290px; border-radius: var(--radius); overflow: hidden; background: #C9B9A0; }
.ba__tile--after { background: #8DB87F; }
.ba__tile img { width: 100%; height: 100%; object-fit: cover; }
.ba__label { position: absolute; left: 16px; bottom: 16px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; padding: 6px 10px; border-radius: 8px; }
.ba__tile--after .ba__label { background: var(--orange); color: var(--ink); }
.photo { border-radius: 28px; overflow: hidden; background: #B9CDB3; min-height: 360px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.station-illo { border-radius: 28px; background: var(--green-soft); min-height: 480px; display: flex; align-items: center; justify-content: center; }

/* ---------- CTA band + service area + footer ---------- */
.cta-band { background: var(--orange); }
.cta-band .container { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; max-width: 640px; text-transform: uppercase; margin: 0; }
.cta-band .btn { font-size: 18px; padding: 18px 28px; letter-spacing: 0.04em; }
.map { flex: 1 1 420px; min-width: 0; height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--green-soft); border: 1px solid #C9D6C6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #2F4A38; font-weight: 600; }
.map iframe { width: 100%; height: 100%; border: 0; }
.site-footer { background: var(--ink); color: #C9D3CC; }
.site-footer .container { padding-top: 48px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 28px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer__brand { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.site-footer__brand strong { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--white); }
.site-footer__brand a { color: #FF8A3D; font-weight: 700; text-decoration: none; font-size: 16px; margin-top: 6px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 10px 36px; font-size: 14px; }
.footer-nav .sub-menu { display: none; }
.site-footer a { color: #E6ECE7; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__bottom { border-top: 1px solid #2E3A33; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }
@media (max-width: 640px) { .footer-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.post-card:hover { color: var(--ink); box-shadow: var(--shadow); }
.post-card__band { height: 10px; background: #B9CDB3; }
.post-card:nth-child(4n+2) .post-card__band { background: #F6C9A8; }
.post-card:nth-child(4n+3) .post-card__band { background: #C9D2DB; }
.post-card:nth-child(4n+4) .post-card__band { background: #D8C8A8; }
.post-card__thumb img { width: 100%; height: 200px; object-fit: cover; }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.post-card__date { font-size: 13px; font-weight: 600; color: var(--muted); }
.post-card__title { font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 0; }
.post-card__excerpt { font-size: 15px; line-height: 1.55; color: var(--body); margin: 0; }
.post-card__more { font-weight: 700; color: var(--orange-text); font-size: 15px; }
.mini-post { text-decoration: none; color: var(--ink); background: var(--white); border-radius: 18px; padding: 20px 24px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 600; font-size: 17px; }
.mini-post span { font-size: 14px; color: var(--muted); white-space: nowrap; font-weight: 500; }
.pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 10px 16px; border-radius: 999px; background: var(--white); text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .current { background: var(--ink); color: var(--white); }
.back-pill { align-self: flex-start; background: var(--ground); color: var(--ink); font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 16px; font-weight: 600; }

/* ---------- Content from the WordPress editor ---------- */
.entry-content { font-size: 18px; line-height: 1.75; color: #2E3A33; }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-head); font-weight: 600; color: var(--ink); line-height: 1.2; margin-top: 1.6em; margin-bottom: 0.5em; }
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 24px; }
.entry-content h4 { font-size: 20px; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote { margin: 1.5em 0; padding: 20px 24px; background: var(--ground); border-radius: 18px; font-weight: 500; }
.entry-content img { border-radius: 18px; }
.entry-content iframe { max-width: 100%; border: 0; border-radius: 18px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.alignwide { max-width: 1100px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); }

/* ---------- Forms (native + Gravity Forms) ---------- */
.form-card { background: var(--white); border-radius: 28px; padding: 40px; box-shadow: var(--shadow); }
.form-card label, .gform_wrapper .gfield_label, .gform_wrapper legend { font-size: 14px; font-weight: 600; color: var(--ink); }
.form-card input[type="text"], .form-card input[type="email"], .form-card input[type="tel"], .form-card input[type="number"], .form-card input[type="url"], .form-card select, .form-card textarea,
.gform_wrapper input[type="text"], .gform_wrapper input[type="email"], .gform_wrapper input[type="tel"], .gform_wrapper input[type="number"], .gform_wrapper select, .gform_wrapper textarea {
	width: 100%; border: 1.5px solid var(--field); border-radius: 12px; padding: 13px 14px; font-size: 16px; background: var(--white); color: var(--ink);
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus, .gform_wrapper input:focus, .gform_wrapper textarea:focus, .gform_wrapper select:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2); }
.form-card input[type="radio"], .form-card input[type="checkbox"], .gform_wrapper input[type="radio"], .gform_wrapper input[type="checkbox"] { accent-color: var(--orange); width: 18px; height: 18px; }
.form-card input[type="submit"], .form-card button[type="submit"], .gform_wrapper .gform_button, .gform_wrapper input[type="submit"], .gform_wrapper button[type="submit"], .wpcf7-submit {
	background: var(--orange) !important; color: var(--ink) !important; border: 0 !important; font-weight: 700; font-size: 16px; padding: 16px 28px !important; border-radius: 999px !important; cursor: pointer;
}
.gform_wrapper .gfield { margin-bottom: 18px; }
.gform_wrapper .gfield_required { color: var(--orange-text); }
.gform_wrapper .validation_message, .gform_wrapper .gfield_validation_message { color: #B42318; font-size: 14px; }
.form-placeholder { border: 2px dashed var(--field); border-radius: 18px; padding: 24px; color: var(--muted); font-size: 15px; }

/* ---------- Mobile quick-action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 768px) {
	body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
	.mobile-bar {
		display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
		background: var(--ink); padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
		box-shadow: 0 -6px 20px rgba(22, 32, 26, 0.2);
	}
	.mobile-bar a {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
		min-height: 60px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 13px; line-height: 1.1; text-align: center;
	}
	.mobile-bar__call { background: var(--orange); color: var(--ink); }
	.mobile-bar__request { background: var(--white); color: var(--ink); }
	.mobile-bar__order { background: transparent; color: var(--white); border: 1.5px solid #5E6B63; }
	.mobile-bar a:hover, .mobile-bar a:focus { color: inherit; }
	.mobile-bar__order:hover, .mobile-bar__order:focus { color: var(--white); border-color: var(--white); }
	.topbar .btn { display: none; }
}
@media print { .mobile-bar { display: none !important; } }

/* ---------- 404 ---------- */
.notfound { min-height: 50vh; display: flex; align-items: center; }
