/* ==========================================================================
   Cleanwise — main stylesheet
   ========================================================================== */

:root {
	--cw-navy: #3c4544;
	--cw-navy-2: #637172;
	--cw-aqua: #637172;
	--cw-aqua-bright: #94af50;
	--cw-light: #fef7ed;
	--cw-accent: #94af50;
	--cw-accent-dark: #7f9a3e;
	--cw-text: #3c4544;
	--cw-mint: #c9d8df;
	--cw-sage: #637172;
	--cw-muted: #637172;
	--cw-border: #dce5e9;
	--cw-white: #ffffff;
	--cw-radius: 12px;
	--cw-shadow: 0 10px 30px rgba(60, 69, 68, 0.08);
	--cw-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--cw-font-head: "Poppins", var(--cw-font-body);
	--cw-container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--cw-font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--cw-text);
	background: var(--cw-white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--cw-aqua); text-decoration: none; }
a:hover { color: var(--cw-navy); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cw-font-head);
	color: var(--cw-navy);
	line-height: 1.2;
	margin: 0 0 0.6em;
	font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	padding: 10px 16px;
	background: var(--cw-white);
	color: var(--cw-navy);
	border-radius: 6px;
}

.cw-container {
	width: 100%;
	max-width: var(--cw-container);
	margin: 0 auto;
	padding: 0 20px;
}

/* Buttons ---------------------------------------------------------------- */
.cw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	font-family: var(--cw-font-head);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
	text-decoration: none;
}
.cw-btn:hover { transform: translateY(-1px); }
.cw-btn--accent { background: var(--cw-accent); color: var(--cw-navy); }
.cw-btn--accent:hover { background: var(--cw-accent-dark); color: var(--cw-navy); }
.cw-btn--primary { background: var(--cw-navy); color: var(--cw-white); }
.cw-btn--primary:hover { background: var(--cw-navy-2); color: var(--cw-white); }
.cw-btn--ghost { border-color: currentColor; color: var(--cw-navy); background: transparent; }
.cw-btn--ghost:hover { background: var(--cw-navy); color: var(--cw-white); border-color: var(--cw-navy); }
.cw-btn--sm { padding: 10px 20px; font-size: 15px; }

/* Top bar ---------------------------------------------------------------- */
.cw-topbar {
	background: var(--cw-navy);
	color: #c9d8df;
	font-size: 14px;
}
.cw-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	padding-top: 8px;
	padding-bottom: 8px;
}
.cw-topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.cw-topbar__item svg { color: var(--cw-aqua-bright); }
.cw-topbar a { color: #fff; }
.cw-topbar__right { margin-left: auto; }

/* Header ----------------------------------------------------------------- */
.cw-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--cw-white);
	box-shadow: 0 2px 16px rgba(60, 69, 68, 0.07);
}
.admin-bar .cw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cw-header { top: 0; } }

.cw-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
	gap: 24px;
}
.cw-brand .custom-logo { max-height: 56px; width: auto; display: block; }
.cw-brand__name {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--cw-font-head);
	font-weight: 700;
	font-size: 22px;
	color: var(--cw-navy);
}
.cw-brand__name:hover { color: var(--cw-navy); }
.cw-brand__mark {
	display: inline-grid;
	place-items: center;
	width: 42px; height: 42px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--cw-aqua-bright), var(--cw-aqua));
	color: #fff;
}
.cw-brand__mark svg { width: 26px; height: 26px; }
.cw-brand__name--light { color: #fff; margin-bottom: 14px; }
.cw-brand__name--light:hover { color: #fff; }

.cw-nav { display: flex; align-items: center; gap: 28px; }
.cw-menu {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.cw-menu li { position: relative; }
.cw-menu a {
	display: block;
	padding: 10px 14px;
	color: var(--cw-navy);
	font-weight: 500;
	border-radius: 8px;
}
.cw-menu a:hover,
.cw-menu .current-menu-item > a,
.cw-menu .current_page_item > a { color: var(--cw-aqua); background: var(--cw-mint); }
.cw-menu .sub-menu,
.cw-menu .children {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	list-style: none;
	margin: 0;
	padding: 8px;
	background: #fff;
	border-radius: 10px;
	box-shadow: var(--cw-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all .2s;
}
.cw-menu li:hover > .sub-menu,
.cw-menu li:focus-within > .sub-menu,
.cw-menu li:hover > .children,
.cw-menu li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }

.cw-nav__actions { display: flex; align-items: center; gap: 18px; }
.cw-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--cw-navy);
	white-space: nowrap;
}
.cw-header__phone svg { color: var(--cw-aqua); }

.cw-nav-toggle {
	display: none;
	width: 46px; height: 46px;
	border: 0;
	border-radius: 10px;
	background: var(--cw-mint);
	cursor: pointer;
	position: relative;
}
.cw-nav-toggle__bar,
.cw-nav-toggle__bar::before,
.cw-nav-toggle__bar::after {
	position: absolute;
	left: 12px;
	width: 22px; height: 2px;
	background: var(--cw-navy);
	border-radius: 2px;
	transition: transform .2s, top .2s, opacity .2s;
	content: "";
}
.cw-nav-toggle__bar { top: 22px; }
.cw-nav-toggle__bar::before { top: -7px; left: 0; }
.cw-nav-toggle__bar::after { top: 7px; left: 0; }
.cw-nav-toggle[aria-expanded="true"] .cw-nav-toggle__bar { background: transparent; }
.cw-nav-toggle[aria-expanded="true"] .cw-nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.cw-nav-toggle[aria-expanded="true"] .cw-nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
	.cw-nav-toggle { display: block; }
	.cw-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 16px 20px 24px;
		background: #fff;
		box-shadow: 0 12px 20px rgba(60, 69, 68, 0.1);
	}
	.cw-nav.is-open { display: flex; }
	.cw-menu { flex-direction: column; }
	.cw-menu .sub-menu,
	.cw-menu .children {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; padding-left: 16px;
	}
	.cw-nav__actions { flex-direction: column; align-items: stretch; }
	.cw-header__phone { justify-content: center; padding: 8px; }
}
@media (max-width: 640px) {
	.cw-hide-sm { display: none !important; }
	.cw-topbar__right { margin-left: 0; }
}

/* Page hero (non-Elementor pages, posts, archives) ------------------------ */
.cw-page-hero {
	background: linear-gradient(135deg, var(--cw-navy) 0%, var(--cw-navy-2) 60%, var(--cw-sage) 100%);
	color: #e4ecef;
	padding: 72px 0;
}
.cw-page-hero__title { color: #fff; margin: 0; }
.cw-page-hero__meta { margin: 0 0 10px; font-size: 15px; }
.cw-page-hero__meta a { color: var(--cw-accent); }

.cw-content-area { padding-top: 64px; padding-bottom: 80px; }
.cw-prose { max-width: 820px; }
.cw-prose > * + h2,
.cw-prose > * + h3 { margin-top: 1.6em; }
.cw-featured { margin: 0 0 32px; }
.cw-featured img { border-radius: var(--cw-radius); }
.cw-post-nav { display: flex; justify-content: space-between; gap: 20px; margin: 48px 0; font-weight: 600; }
.cw-tags a { display: inline-block; padding: 4px 12px; margin: 0 6px 6px 0; background: var(--cw-light); border-radius: 999px; font-size: 14px; }

/* Blog cards */
.cw-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.cw-card { background: #fff; border: 1px solid var(--cw-border); border-radius: var(--cw-radius); overflow: hidden; box-shadow: var(--cw-shadow); display: flex; flex-direction: column; }
.cw-card__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cw-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.cw-card__meta { font-size: 14px; color: var(--cw-muted); margin-bottom: 6px; }
.cw-card__title { font-size: 1.25rem; }
.cw-card__title a { color: var(--cw-navy); }
.cw-card__more { margin-top: auto; font-weight: 600; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 8px; background: var(--cw-light); color: var(--cw-navy); }
.nav-links .current { background: var(--cw-navy); color: #fff; }

/* 404 */
.cw-404 { padding: 120px 0; text-align: center; background: var(--cw-light); }
.cw-404 .cw-btn { margin: 6px; }
.cw-eyebrow {
	font-family: var(--cw-font-head);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cw-aqua);
	margin-bottom: 10px;
}

/* Forms ------------------------------------------------------------------ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="search"],
input[type="url"],
input[type="password"],
select,
textarea {
	width: 100%;
	padding: 13px 16px;
	font: inherit;
	font-size: 16px;
	color: var(--cw-navy);
	background: #fff;
	border: 1.5px solid var(--cw-border);
	border-radius: 10px;
	transition: border-color .2s, box-shadow .2s;
}
input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--cw-aqua-bright);
	box-shadow: 0 0 0 4px rgba(148, 175, 80, 0.15);
}

.cw-quote__form { margin: 0; }
.cw-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .cw-field-row { grid-template-columns: 1fr; } }
.cw-field { margin: 0 0 18px; }
.cw-field label { display: block; font-weight: 600; font-size: 14px; color: var(--cw-navy); margin-bottom: 6px; }
.cw-field .req { color: #c0392b; }
.cw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cw-quote__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 4px 0 0; }
.cw-quote__note { font-size: 14px; color: var(--cw-muted); }
.cw-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }
.cw-alert--success { background: #e5f7ec; color: #1d6b3a; border: 1px solid #b6e3c6; }
.cw-alert--error { background: #fdecea; color: #8e2a1f; border: 1px solid #f3c1bb; }

/* Contact list shortcode */
.cw-contact-list { list-style: none; margin: 0; padding: 0; }
.cw-contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; line-height: 1.5; }
.cw-contact-list__icon {
	flex: 0 0 40px;
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border-radius: 10px;
	background: var(--cw-mint);
	color: var(--cw-aqua);
}
.cw-contact-list strong { color: var(--cw-navy); font-family: var(--cw-font-head); font-weight: 600; }

/* Footer ----------------------------------------------------------------- */
.cw-footer { background: var(--cw-navy); color: #c9d8df; font-size: 15px; }
.cw-footer a { color: #fef7ed; }
.cw-footer a:hover { color: var(--cw-accent); }
.cw-footer__grid {
	display: grid;
	grid-template-columns: 1.3fr 0.8fr 1.2fr 1.1fr;
	gap: 40px;
	padding-top: 72px;
	padding-bottom: 56px;
}
@media (max-width: 1024px) { .cw-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cw-footer__grid { grid-template-columns: 1fr; } }
.cw-footer__title { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.cw-footer__menu { list-style: none; margin: 0; padding: 0; }
.cw-footer__menu li { margin-bottom: 10px; }
.cw-footer__area { display: flex; gap: 8px; align-items: flex-start; }
.cw-footer__area svg { flex: none; margin-top: 4px; color: var(--cw-aqua-bright); }
.cw-footer .cw-contact-list strong { color: #fff; }
.cw-footer .cw-contact-list__icon { background: rgba(255, 255, 255, 0.08); color: var(--cw-aqua-bright); }
.cw-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.cw-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; font-size: 14px; }
.cw-footer__bottom p { margin: 0; }

/* Elementor integration ---------------------------------------------------- */
.cw-builder-page > .elementor { width: 100%; }
.elementor-widget-shortcode .cw-contact-list { margin-top: 8px; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Fallback layout for the demo pages when Elementor is NOT active.
   (When Elementor is active it renders these pages itself.)
   ========================================================================== */
.cw-sec { padding: 88px 0; }
.cw-sec--light { background: var(--cw-light); }
.cw-sec--navy { background: var(--cw-navy); }
.cw-sec--gradient { background: linear-gradient(135deg, var(--cw-navy) 0%, var(--cw-navy-2) 55%, var(--cw-sage) 100%); }
.cw-sec--accent { background: linear-gradient(120deg, #3c4544 0%, #637172 100%); }
.cw-sec--dark,
.cw-sec--dark h1, .cw-sec--dark h2, .cw-sec--dark h3, .cw-sec--dark .cw-text { color: #fff; }
.cw-sec--dark .cw-text { color: #e4ecef; }
.cw-sec--dark .cw-eyebrow { color: var(--cw-accent); }
.cw-sec--dark .cw-btn--ghost { color: #fff; }
.cw-sec--dark .cw-col--card,
.cw-sec--dark .cw-col--card h3 { color: var(--cw-text); }
.cw-sec--dark .cw-col--card h3,
.cw-sec--dark .cw-col--card h2 { color: var(--cw-navy); }
.cw-sec--tight { padding: 40px 0; }
.cw-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.cw-row--middle { align-items: center; }
.cw-col { flex: 1 1 0; min-width: 0; }
.cw-col--card { background: #fff; border-radius: var(--cw-radius); box-shadow: var(--cw-shadow); padding: 34px; }
.cw-center { text-align: center; }
.cw-sec .cw-center .cw-text { max-width: 680px; margin-left: auto; margin-right: auto; }
.cw-sec .cw-btn { margin: 8px 10px 0 0; }
.cw-ibox__icon {
	display: inline-grid; place-items: center;
	width: 56px; height: 56px; border-radius: 14px;
	background: var(--cw-mint); color: var(--cw-aqua);
	margin-bottom: 16px;
}
.cw-ibox--left { display: flex; gap: 14px; align-items: flex-start; }
.cw-ibox--left .cw-ibox__icon { flex: none; width: 46px; height: 46px; margin: 0; }
.cw-ibox h3 { margin-bottom: 8px; }
.cw-ibox p { margin: 0; }
.cw-checks { list-style: none; padding: 0; margin: 0 0 1em; }
.cw-checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.cw-checks li::before {
	content: "";
	position: absolute; left: 0; top: 5px;
	width: 18px; height: 18px; border-radius: 50%;
	background: var(--cw-aqua-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.cw-testimonial { margin: 0; }
.cw-testimonial p { font-style: italic; }
.cw-testimonial cite { font-style: normal; font-weight: 600; color: var(--cw-navy); display: block; }
.cw-testimonial span { font-size: 14px; color: var(--cw-muted); }
@media (max-width: 900px) {
	.cw-row { flex-direction: column; }
	.cw-sec { padding: 64px 0; }
}

/* Links on dark sections (Elementor + fallback), but not inside white cards */
.cw-on-dark .elementor-widget-text-editor a,
.cw-sec--dark .cw-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.cw-on-dark .elementor-widget-text-editor a:hover,
.cw-sec--dark .cw-text a:hover { color: var(--cw-accent); }
.cw-on-dark .cw-card-col .elementor-widget-text-editor a,
.cw-sec--dark .cw-col--card .cw-text a { color: var(--cw-aqua); text-decoration: none; }
.cw-sec--dark .cw-col--card .cw-text { color: var(--cw-text); }

/* Brand: circular logo + wordmark ------------------------------------------ */
.cw-brand__link { display: inline-flex; align-items: center; gap: 12px; color: var(--cw-navy); }
.cw-brand__link:hover { color: var(--cw-navy); }
.cw-brand__logo {
	width: 62px; height: 62px; border-radius: 50%;
	border: 3px solid var(--cw-accent);
	background: #fef7ed;
	object-fit: cover; display: block;
}
.cw-brand__words { display: flex; flex-direction: column; line-height: 1.05; }
.cw-brand__top {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #637172;
}
.cw-brand__main {
	font-family: "Montserrat", var(--cw-font-head);
	font-weight: 800; font-size: 21px; letter-spacing: .12em; text-transform: uppercase; color: #3c4544;
}
.cw-footer .cw-brand__link { color: #fff; margin-bottom: 16px; }
.cw-footer .cw-brand__top { color: #c9d8df; }
.cw-footer .cw-brand__main { color: #fff; }
@media (max-width: 480px) {
	.cw-brand__logo { width: 50px; height: 50px; }
	.cw-brand__main { font-size: 17px; }
	.cw-brand__top { font-size: 12px; }
}

/* Social buttons */
.cw-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cw-social a {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px; border-radius: 999px;
	background: var(--cw-mint); color: var(--cw-navy); font-weight: 600; font-size: 15px;
}
.cw-social a:hover { background: var(--cw-accent); color: var(--cw-navy); }
.cw-footer .cw-social a { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cw-footer .cw-social a:hover { background: var(--cw-accent); color: var(--cw-navy); }
.cw-topbar .cw-topbar__social a { display: inline-flex; color: #fff; }
.cw-topbar__social { gap: 12px; }

/* Long emails/URLs must wrap on small screens */
.cw-contact-list li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.cw-topbar__item { min-width: 0; overflow-wrap: anywhere; }
.cw-col, .cw-col--card { min-width: 0; }
@media (max-width: 480px) {
	.cw-col--card { padding: 26px 22px; }
	.cw-topbar { font-size: 13px; }
}

/* Photos in fallback layout */
.cw-photo { width: 100%; object-fit: cover; border-radius: 14px; display: block; margin-bottom: 14px; }
.elementor-widget-image img { border-radius: 14px; }
