/*
Theme Name: Car Battery Disposal
Theme URI: https://www.carbatterydisposal.com/
Author: Paul Fraser
Description: Simple classic theme for CarBatteryDisposal.com (a Waste Cloud site). Shares the Waste Cloud Skips design system. No ACF dependency – settings under Settings › Car Battery Disposal.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: carbatterydisposal
*/

:root {
	--ink: #14202e;
	--ink-2: #3a4756;
	--ink-3: #4b5867;
	--muted: #5b6876;
	--faint: #8a96a3;
	--blue: #0a66c2;
	--blue-dark: #08498c;
	--blue-tint: #cfe3f7;
	--green: #2f9a3a;
	--green-dark: #237a2c;
	--line: #e8ecf0;
	--line-2: #e3e8ee;
	--line-3: #d6dde4;
	--btn-line: #cfd7df;
	--navy: #0b2540;
	--navy-line: #1d3a5c;
	--foot-text: #c9d6e3;
	--foot-muted: #9fb2c6;
	--wrap: 1200px;
	--gutter: 32px;
	--logo-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
.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: 100; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Backgrounds */
.bg-dots { background: #eef5fc; background-image: radial-gradient(#c6daef 1px, transparent 1px); background-size: 22px 22px; }
.bg-stripes { background: #eef6ec; background-image: repeating-linear-gradient(135deg, rgba(47,154,58,.07) 0 1px, transparent 1px 14px); }
.bg-grid { background: #f4f6f8; background-image: linear-gradient(#e6eaee 1px, transparent 1px), linear-gradient(90deg, #e6eaee 1px, transparent 1px); background-size: 48px 48px; }

/* Buttons */
.btn { display: inline-block; padding: 16px 26px; border-radius: 8px; font: inherit; font-weight: 600; text-decoration: none; line-height: 1.2; border: 1px solid transparent; cursor: pointer; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); color: #fff; }
.btn--outline { border-color: var(--btn-line); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--white { background: #fff; color: var(--blue); padding: 14px 22px; }
.btn--white:hover { color: var(--blue-dark); }
.btn--sm { padding: 12px 20px; font-size: 15px; white-space: nowrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 50; }
.site-header__inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; min-height: 84px; }
.site-logo { display: block; line-height: 0; flex-shrink: 0; }
.site-logo img { height: var(--logo-h); width: auto; display: block; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a { display: flex; align-items: center; gap: 6px; padding: 30px 0; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.primary-nav > ul > li.menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.primary-nav > ul > li > a:hover, .primary-nav > ul > li:hover > a, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current_page_item > a { color: var(--ink); }
.primary-nav > ul > li.current-menu-ancestor > a, .primary-nav > ul > li.current-menu-item > a, .primary-nav > ul > li.current_page_item > a { box-shadow: inset 0 -2px 0 var(--blue); }
.primary-nav > ul > li > .sub-menu { display: none; position: absolute; left: -18px; top: 100%; min-width: 260px; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 18px 30px rgba(20,32,46,.10); padding: 10px 0; }
.primary-nav > ul > li:hover > .sub-menu, .primary-nav > ul > li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { display: block; padding: 9px 18px; font-weight: 500; font-size: 14.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .current-menu-item > a { color: var(--blue); background: rgba(20,32,46,.035); }
.primary-nav .sub-toggle { display: none; }
.header-cta { display: flex; gap: 18px; align-items: center; flex-shrink: 0; }
.header-phone { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 1px solid var(--btn-line); border-radius: 8px; width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--ink); }
.nav-toggle svg { display: block; margin: auto; }
@media (max-width: 1240px) { .header-phone { display: none; } .primary-nav > ul { gap: 22px; } }
@media (max-width: 1000px) {
	.site-header__inner { min-height: 72px; gap: 12px; }
	.nav-toggle { display: block; }
	.site-logo { margin-right: auto; }
	.site-logo img { height: 44px; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20,32,46,.08); max-height: calc(100vh - 72px); overflow-y: auto; }
	.primary-nav.is-open { display: block; }
	.primary-nav > ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; font-size: 17px; }
	.primary-nav > ul > li { border-bottom: 1px solid var(--line); }
	.primary-nav > ul > li > a { padding: 14px 0; box-shadow: none !important; }
	.primary-nav > ul > li.menu-item-has-children > a::after { display: none; }
	.primary-nav .sub-toggle { display: flex; position: absolute; right: 0; top: 6px; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 0; color: var(--ink); cursor: pointer; }
	.primary-nav .sub-toggle svg { transition: transform .15s; }
	.primary-nav li.is-open > .sub-toggle svg { transform: rotate(180deg); }
	.primary-nav > ul > li > .sub-menu { position: static; min-width: 0; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 12px; }
	.primary-nav .sub-menu a { padding: 9px 12px; font-size: 15.5px; white-space: normal; }
	.primary-nav > ul > li:hover > .sub-menu, .primary-nav > ul > li:focus-within > .sub-menu { display: none; }
	.primary-nav > ul > li.is-open > .sub-menu { display: block; }
}
@media (max-width: 480px) {
	:root { --gutter: 16px; }
	.site-logo img { height: 38px; }
	.header-cta .btn--sm { padding: 11px 14px; font-size: 14px; }
}

/* Breadcrumb */
.breadcrumb { padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--faint); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.hero--sub { padding-top: 40px; padding-bottom: 56px; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--green); letter-spacing: .04em; }
.hero h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.hero--sub h1 { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.08; }
.hero__lead { font-size: 18px; line-height: 1.6; color: var(--ink-3); max-width: 560px; }
.hero__media { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__media img { max-width: 100%; height: auto; }
.hero-panel { background: var(--blue); color: #fff; border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 18px; align-self: center; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; }
.hero-panel__label { font-size: 14px; font-weight: 600; color: var(--blue-tint); }
.hero-panel__phone { color: #fff; text-decoration: none; font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -.02em; }
.hero-panel__phone:hover { color: #fff; opacity: .9; }
.hero-panel .btn { align-self: flex-start; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex-shrink: 0; margin-top: 2px; }
.ticks--light { color: #fff; font-size: 16px; }
.ticks--light svg circle { fill: rgba(255,255,255,.22); }

/* Sections */
.section { padding-top: 72px; padding-bottom: 72px; }
.section--line { border-top: 1px solid var(--line); }
.section-title { font-size: 30px; letter-spacing: -.015em; line-height: 1.2; text-wrap: balance; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.section-head p { font-size: 17px; line-height: 1.6; color: var(--ink-3); }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); text-wrap: pretty; }
.prose > * + * { margin-top: 1em; }
.prose strong { color: var(--ink); }
.prose h2 { font-size: 26px; color: var(--ink); margin-top: 1.8em; letter-spacing: -.015em; line-height: 1.25; }
.prose h3 { font-size: 19px; color: var(--ink); margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: #f6f8fa; }
.prose .callout { background: #eef6ec; border: 1px solid #bfdfba; border-radius: 12px; padding: 20px 24px; color: var(--ink); }
.prose .callout--warn { background: #fff7e0; border-color: #f1d78a; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 56px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 24px; }

/* Content layout (page body + sticky side) */
.content-layout { padding-top: 48px; padding-bottom: 72px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; gap: 32px; } }
.side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
@media (max-width: 900px) { .side { position: static; } }
.facts-card { border: 1px solid var(--line-2); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 20px; background: #fff; box-shadow: 0 10px 30px rgba(20,32,46,.05); }
.facts-card__title { font-size: 20px; }
.facts-card dl { margin: 0; display: flex; flex-direction: column; }
.facts-card dl > div { display: grid; grid-template-columns: minmax(110px, 2fr) 3fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.facts-card dt { color: var(--muted); }
.facts-card dd { margin: 0; font-weight: 600; }
.facts-card .btn { align-self: flex-start; }
.side-links { border: 1px solid var(--line-2); border-radius: 16px; padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; }
.side-links__title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.side-links a { font-size: 15px; color: var(--ink-2); text-decoration: none; padding: 6px 0; border-top: 1px solid var(--line); }
.side-links a:hover, .side-links a[aria-current] { color: var(--blue); }

/* Cards */
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.link-card { border: 1px solid var(--line-2); border-radius: 14px; padding: 26px 28px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.link-card:hover { color: var(--ink); border-color: #c4d3e2; box-shadow: 0 10px 24px rgba(10,102,194,.08); }
.link-card__name { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 18px; }
.link-card:hover .link-card__name > span:first-child { color: var(--blue); }
.link-card__desc { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.arrow { color: var(--blue); font-weight: 600; }

/* Why / steps */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 36px 48px; }
.why-item { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line-3); padding-top: 18px; }
.why-item__num { font-size: 13px; font-weight: 600; color: var(--green); }
.why-item__title { font-weight: 600; font-size: 18px; }
.why-item__text { font-size: 15px; line-height: 1.7; color: var(--ink-3); }

/* CTA card */
.cta-card { background: var(--blue); color: #fff; border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.cta-card__label { font-size: 14px; font-weight: 600; color: var(--blue-tint); }
.cta-card__phone { color: #fff; text-decoration: none; font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -.02em; }
.cta-card__phone:hover { color: #fff; opacity: .9; }
.cta-card__email { font-size: 17px; }
.cta-card__email a { color: #fff; }
.cta-card .btn { align-self: flex-start; }

/* Accepted / not accepted */
.list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.list-card { background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.list-card__title { font-size: 20px; }
.list-card .ticks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px 20px; }
.list-card__note { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq-layout__head { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
@media (max-width: 800px) { .faq-layout { grid-template-columns: 1fr; gap: 24px; } .faq-layout__head { position: static; } }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-weight: 600; font-size: 17px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; color: var(--blue); transition: transform .15s; }
.faq[open] summary svg { transform: rotate(180deg); }
.faq summary:hover { color: var(--blue); }
.faq__a { padding: 0 0 22px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }

/* Quote form */
.quote-section__inner { padding-top: 72px; padding-bottom: 80px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .quote-section__inner { grid-template-columns: 1fr; gap: 32px; } }
.quote-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 24px; }
@media (max-width: 900px) { .quote-side { position: static; } }
.tel-line { font-size: 22px; font-weight: 600; }
.form-card { border: 1px solid var(--line-2); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 24px; background: #fff; }
@media (max-width: 480px) { .form-card { padding: 24px; } }
.form-card h2 { font-size: 24px; letter-spacing: -.01em; }
.form-card__intro { font-size: 15px; color: var(--ink-3); line-height: 1.6; margin-top: -8px; }
/* WastePrime lead form embed */
.form-card .wastecloud_form { font-family: inherit; max-width: none; display: block; }
.form-card .wastecloud_form_control { margin-bottom: 18px; }
.form-card .wastecloud_form_control label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.form-card .wastecloud_form_control input[type="text"], .form-card .wastecloud_form_control input[type="tel"], .form-card .wastecloud_form_control input[type="email"], .form-card .wastecloud_form_control input[type="number"], .form-card .wastecloud_form_control input[type="date"], .form-card .wastecloud_form_control select, .form-card .wastecloud_form_control textarea { font: inherit; font-size: 16px; color: var(--ink); border: 1px solid var(--btn-line); border-radius: 8px; padding: 12px 14px; }
.form-card .wastecloud_form_control textarea { min-height: 120px; }
.form-card .wastecloud_form_control input:focus, .form-card .wastecloud_form_control select:focus, .form-card .wastecloud_form_control textarea:focus { outline: 2px solid rgba(10,102,194,.25); border-color: var(--blue); box-shadow: none; }
.form-card .wastecloud_submit input[type="submit"] { font: inherit; font-weight: 600; padding: 16px 26px; border-radius: 8px; background: var(--blue); color: #fff; }
.form-card .wastecloud_submit input[type="submit"]:hover { background: var(--blue-dark); }

/* Footer */
.site-footer { background: var(--navy); color: var(--foot-text); }
.site-footer__inner { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col__title { color: #fff; font-weight: 600; margin-bottom: 4px; }
.footer-col a { color: var(--foot-text); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; grid-column: span 2; }
@media (max-width: 760px) { .footer-brand { grid-column: auto; } }
.footer-logo { background: #fff; border-radius: 10px; padding: 10px 14px; align-self: flex-start; line-height: 0; }
.footer-logo img { height: 56px; width: auto; display: block; }
.footer-partner { font-size: 13px; line-height: 1.6; color: var(--foot-muted); max-width: 300px; }
.footer-brand a.footer-powered { color: var(--foot-text); font-size: 14px; text-decoration: underline; }
.footer-col a.footer-phone { color: #fff; font-size: 20px; font-weight: 600; }
.footer-col a.footer-email { text-decoration: underline; }
.footer-col a.footer-quote { color: var(--blue); align-self: flex-start; margin-top: 8px; text-decoration: none; }
.footer-legal { font-size: 13px; line-height: 1.8; color: var(--foot-muted); border-top: 1px solid var(--navy-line); padding-top: 32px; }
.footer-legal a, .footer-bottom a { color: var(--foot-text); }
.footer-legal a:hover, .footer-bottom a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; color: var(--foot-muted); }

/* Generic page / 404 */
.page-content { padding-top: 56px; padding-bottom: 80px; max-width: 820px; }
.page-content h1 { font-size: clamp(34px, 4.4vw, 48px); letter-spacing: -.025em; margin-bottom: 28px; }

@media (max-width: 600px) {
	.hero { padding-top: 40px; gap: 36px; }
	.hero-panel, .facts-card, .list-card { padding: 24px; }
	.cta-card { padding: 28px; }
	.section { padding-top: 56px; padding-bottom: 56px; }
}
