/*
Theme Name:   Hello Elementor Child
Theme URI:    https://kingsley-bin-cleaning.co.uk/
Description:  Child theme for Kingsley Bin Cleaning. Site-specific PHP and CSS live here so they survive Hello Elementor updates.
Author:       Sean O'Donoghue
Template:     hello-elementor
Version:      2.1.2
Text Domain:  hello-elementor-child
*/

/* Design tokens live in Elementor's global colours and fonts (Site Settings);
   only rules Elementor can't express belong here. */

/* ---- Design v2 (layout after wimbledoncleaningcompany.com, Kingsley branding) ---- */

/* Two-tone headings: the <span> is the accent. Deep green on light, brand green on dark. */
.kbc-two-tone .elementor-heading-title span { color: var(--e-global-color-accent); }
.kbc-on-dark .elementor-heading-title span { color: var(--e-global-color-primary); }

/* Secondary text on dark sections: white at 78% (12:1 → still well above AA). */
.kbc-muted-on-dark, .kbc-muted-on-dark p { color: rgba(255, 255, 255, 0.78) !important; }
.kbc-muted-on-dark a { color: var(--e-global-color-primary); }

/* Cards lift on hover. */
.kbc-card { transition: box-shadow .2s ease, transform .2s ease; overflow: hidden; }
.kbc-card:hover { box-shadow: 0 14px 36px rgba(31, 35, 38, .12); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .kbc-card, .kbc-card:hover { transition: none; transform: none; } }

/* Rating stars in the crown's gold. */
.kbc-stars { color: var(--e-global-color-kbc_gold); letter-spacing: 2px; margin-right: 6px; }

/* Anchor target for "Get a free quote" clears the header. */
#quote { scroll-margin-top: 20px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The thank-you page doesn't need the quote form under it. */
body.page-thank-you .kbc-quote { display: none; }

/* Form fields: taller, with a visible focus ring. */
.kbc-quote .elementor-field-group .elementor-field:not(.elementor-select-wrapper) { min-height: 50px; }
.kbc-quote .elementor-field:focus { outline: 2px solid var(--e-global-color-primary); outline-offset: 1px; }
.kbc-quote .elementor-field-textual { padding: 12px 16px; }

/* Legal pages: readable measure and spacing for long text. */
.kbc-legal { max-width: 860px; }
.kbc-legal h2 { font-size: 28px; margin: 36px 0 12px; color: var(--e-global-color-secondary); }
.kbc-legal h3 { font-size: 20px; margin: 26px 0 8px; color: var(--e-global-color-secondary); }
.kbc-legal ul { margin: 0 0 16px 20px; }

/* ---------------------------------------------------------------------------
 * Slide-in mobile menu (inc/mobile-menu.php) — ported from Golf with Ireland,
 * in Kingsley's kit: charcoal panel, brand-green accents, Montserrat headings.
 * The logo sits on a white strip because its "BIN CLEANING" lettering is dark.
 * ------------------------------------------------------------------------- */
.kbc-mnav { position: fixed; inset: 0; z-index: 100000; visibility: hidden; pointer-events: none; }
.kbc-mnav.is-open { visibility: visible; pointer-events: auto; }

.kbc-mnav__backdrop { position: absolute; inset: 0; background: rgba(15, 18, 20, 0.6); opacity: 0; transition: opacity 0.3s; }
.kbc-mnav.is-open .kbc-mnav__backdrop { opacity: 1; }

.kbc-mnav__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: 100%; max-width: 440px;
	display: flex; flex-direction: column;
	background: linear-gradient(160deg, #262B2E 0%, #1F2326 55%, #16191B 100%);
	color: #fff;
	font-family: "Heebo", sans-serif;
	box-shadow: -20px 0 50px rgba(0, 0, 0, 0.3);
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.kbc-mnav.is-open .kbc-mnav__panel { transform: translateX(0); }

.kbc-mnav__head {
	flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
	padding: 12px 18px; background: #fff; border-bottom: 3px solid #05AD40;
}
.kbc-mnav__logo img { display: block; height: 50px; width: auto; }
.kbc-mnav__list a, .kbc-mnav__list a:visited { color: #fff; }

.kbc-mnav .kbc-mnav__close {
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
	background: #05AD40; color: #1F2326; cursor: pointer;
}
.kbc-mnav .kbc-mnav__close:hover,
.kbc-mnav .kbc-mnav__close:focus { background: #037A2D; color: #fff; border: 0; }
.kbc-mnav .kbc-mnav__close:focus-visible { outline: 3px solid #1F2326; outline-offset: 2px; }
.kbc-mnav__close svg { width: 18px; height: 18px; }

.kbc-mnav__body { flex: 1 1 auto; overflow-y: auto; padding: 18px 18px 22px; }
.kbc-mnav__eyebrow {
	margin: 0 0 6px; font-family: "Montserrat", sans-serif; font-size: 12px; font-weight: 700;
	letter-spacing: 2.4px; text-transform: uppercase; color: #05AD40;
}
.kbc-mnav__title {
	margin: 0 0 14px; font-family: "Montserrat", sans-serif; font-size: 24px; line-height: 1.2;
	font-weight: 800; color: #fff;
}

.kbc-mnav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kbc-mnav__list li { margin: 0; }
.kbc-mnav__list a {
	display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
	background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff; text-decoration: none; transition: background-color 0.2s, border-color 0.2s;
}
.kbc-mnav__list a:hover,
.kbc-mnav__list a:focus-visible { background: rgba(255, 255, 255, 0.09); border-color: rgba(5, 173, 64, 0.7); color: #fff; }
.kbc-mnav__list .current-menu-item > a,
.kbc-mnav__list .current-menu-item > .kbc-mnav__toggle { border-color: #05AD40; }

.kbc-mnav__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kbc-mnav__name { font-family: "Montserrat", sans-serif; font-size: 16px; font-weight: 700; line-height: 1.25; color: #fff; }
.kbc-mnav__desc { font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, 0.72); }
.kbc-mnav__arrow { flex: 0 0 auto; width: 16px; height: 16px; color: rgba(255, 255, 255, 0.5); }
.kbc-mnav__list a:hover .kbc-mnav__arrow { color: #05AD40; }

.kbc-mnav .kbc-mnav__toggle {
	display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 10px;
	text-align: left; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff; font: inherit; cursor: pointer; white-space: normal; transition: background-color 0.2s, border-color 0.2s;
}
.kbc-mnav .kbc-mnav__toggle:hover,
.kbc-mnav .kbc-mnav__toggle:focus { background: rgba(255, 255, 255, 0.09); border-color: rgba(5, 173, 64, 0.7); color: #fff; }
.kbc-mnav .kbc-mnav__toggle:focus-visible { outline: 3px solid #05AD40; outline-offset: 2px; }
.kbc-mnav .kbc-mnav__toggle[aria-expanded="true"] { border-color: #05AD40; background: rgba(255, 255, 255, 0.07); }
.kbc-mnav__chev { flex: 0 0 auto; width: 16px; height: 16px; color: #05AD40; transition: transform 0.2s; }
.kbc-mnav__toggle[aria-expanded="true"] .kbc-mnav__chev { transform: rotate(180deg); }

.kbc-mnav__sub { list-style: none; margin: 6px 0 2px; padding: 0 0 0 12px; display: flex; flex-direction: column; gap: 5px; }
.kbc-mnav__sub[hidden] { display: none; }
.kbc-mnav__list .kbc-mnav__sub a {
	padding: 9px 12px; gap: 10px; border-radius: 8px;
	background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.07);
}
.kbc-mnav__list .kbc-mnav__sub .kbc-mnav__name { font-size: 15px; font-weight: 600; }

.kbc-mnav__foot {
	margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex; flex-direction: column; gap: 8px;
}
.kbc-mnav__quote,
.kbc-mnav__phone {
	display: flex; align-items: center; border-radius: 999px; padding: 13px 20px;
	font-family: "Montserrat", sans-serif; font-size: 15px; font-weight: 700; text-decoration: none;
}
/* "a." prefixes: the kit's global link colour (.elementor-kit-N a) is more specific otherwise. */
.kbc-mnav a.kbc-mnav__quote { justify-content: space-between; background: #05AD40; color: #1F2326; }
.kbc-mnav a.kbc-mnav__quote:hover,
.kbc-mnav a.kbc-mnav__quote:focus { background: #037A2D; color: #fff; }
.kbc-mnav__quote svg { width: 16px; height: 16px; }
.kbc-mnav__phones { display: flex; gap: 8px; }
.kbc-mnav a.kbc-mnav__phone {
	flex: 1 1 0; justify-content: center; gap: 8px; padding: 12px 10px; font-size: 14px;
	background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff;
}
.kbc-mnav a.kbc-mnav__phone:hover,
.kbc-mnav a.kbc-mnav__phone:focus { border-color: #05AD40; color: #fff; }
.kbc-mnav__phone svg { width: 15px; height: 15px; fill: #05AD40; }
.kbc-mnav__trust { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, 0.65); }

body.kbc-mnav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.kbc-mnav__panel, .kbc-mnav__backdrop { transition: none; }
}

/* ---------------------------------------------------------------------------
 * WhatsApp bar (inc/whatsapp-bar.php) — same design as Golf with Ireland.
 * WhatsApp dark green with white text (~7.6:1). --kbc-wa-h (measured) is
 * reserved as body padding so the footer is never hidden underneath it.
 * ------------------------------------------------------------------------- */
html body { padding-bottom: var(--kbc-wa-h, 0px); }

body a.kbc-wa {
	position: fixed; inset-inline: 0; bottom: 0; z-index: 9990; display: block;
	background-color: #075E54; box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
	color: #fff; text-decoration: none; font-family: "Heebo", sans-serif;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
body a.kbc-wa:hover,
body a.kbc-wa:focus-visible { background-color: #054A42; color: #fff; }
body a.kbc-wa:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

.kbc-wa__inner {
	max-width: 1240px; margin: 0 auto; padding: 11px 20px;
	display: flex; align-items: center; justify-content: flex-end; gap: 14px;
}
.kbc-wa__icon { flex: 0 0 auto; width: 30px; height: 30px; fill: #fff; }
.kbc-wa__text { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; text-align: right; }
.kbc-wa__title { font-family: "Montserrat", sans-serif; font-size: 16px; font-weight: 700; line-height: 1.25; }
.kbc-wa__sub { font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, 0.88); }
.kbc-wa__cta {
	flex: 0 0 auto; background-color: #fff; color: #075E54; font-family: "Montserrat", sans-serif;
	font-size: 14px; font-weight: 700; padding: 9px 18px; border-radius: 999px; white-space: nowrap;
}

/* Phones: one clear message, centred; the whole bar is the tap target. */
@media (max-width: 560px) {
	.kbc-wa__inner { padding: 10px 16px; gap: 10px; justify-content: center; }
	.kbc-wa__icon { width: 24px; height: 24px; }
	.kbc-wa__title { font-size: 15px; white-space: nowrap; }
	.kbc-wa__sub { display: none; }
	.kbc-wa__cta { font-size: 13px; padding: 7px 14px; }
}
@media (max-width: 340px) { .kbc-wa__cta { display: none; } }

.elementor-editor-active .kbc-wa,
body.kbc-mnav-open .kbc-wa { display: none; }
@media print { .kbc-wa { display: none; } html body { padding-bottom: 0; } }
