/* Chemway header, navigation and footer */
:root {
	--cw-blue: #2E80B5;
	--cw-med: #008FCE;
	--cw-light: #A7E0FA;
	--cw-pale: #D1EDF9;
	--cw-dark: #0C2230;
	--cw-link: #2E66B5;
}

.cw-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top links */
.cw-topbar { background: #fff; padding-top: 8px; }
.cw-toplinks-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.cw-toplinks-menu a { display: block; padding: 3px 12px; border: 1px solid var(--cw-link); color: var(--cw-link); font-size: 13px; font-weight: 600; text-transform: uppercase; text-decoration: none; border-radius: 3px; }
.cw-toplinks-menu a:hover, .cw-toplinks-menu .current-menu-item > a { background: var(--cw-link); color: #fff; }

/* Logo, tagline, phone */
.cw-header { background: #fff; }
.cw-header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 10px; padding-bottom: 16px; }
.cw-logo img { display: block; width: 260px; max-width: 100%; height: auto; }
.cw-slogan { margin: 0; flex: 1; text-align: center; font-style: italic; color: var(--cw-blue); font-size: 16px; line-height: 1.5; }
.cw-phone { margin: 0; text-align: right; line-height: 1.2; }
.cw-phone span { display: block; font-size: 13px; color: #333; }
.cw-phone a { font-size: 26px; font-weight: 700; color: var(--cw-dark); text-decoration: none; }
.cw-phone a:hover { color: var(--cw-blue); }

/* Services bar with dropdowns */
.cw-nav { background: var(--cw-blue); position: relative; z-index: 100; }
.cw-nav-toggle, .cw-nav-label { display: none; }
.cw-nav-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.cw-nav-menu > li { position: relative; }
.cw-nav-menu a { display: block; padding: 14px 18px; color: #fff; font-size: 14px; font-weight: 500; text-transform: uppercase; text-decoration: none; }
.cw-nav-menu > li:hover > a, .cw-nav-menu > li:focus-within > a, .cw-nav-menu .current-menu-item > a { background: #4DB4E1; color: #fff; }
.cw-nav-menu .menu-item-has-children > a::after { content: " \25BE"; }
.cw-nav-menu .sub-menu { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 100%; min-width: 260px; background: var(--cw-dark); display: none; }
.cw-nav-menu li:hover > .sub-menu, .cw-nav-menu li:focus-within > .sub-menu { display: block; }
.cw-nav-menu .sub-menu a { padding: 12px 18px; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.08); }
.cw-nav-menu .sub-menu a:hover { background: var(--cw-blue); }

/* Footer */
.cw-footer { background: var(--cw-pale); color: var(--cw-dark); margin-top: 0; }
.cw-footer-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 50px; padding-bottom: 30px; }
.cw-footer h4 { color: var(--cw-blue); margin: 0 0 12px; font-size: 18px; }
.cw-footer p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
.cw-footer a { color: var(--cw-link); }
.cw-footer-logo { width: 200px; height: auto; display: block; margin-bottom: 14px; }
.cw-btn { display: inline-block; background: var(--cw-blue); color: #fff !important; padding: 10px 22px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.cw-btn:hover { background: var(--cw-med); }
.cw-copyright { background: var(--cw-dark); color: #fff; text-align: center; font-size: 13px; padding: 12px 0; }

/* Let Elementor full-width pages run edge to edge */
.elementor-template-full-width .site.grid-container,
.elementor-template-full-width .site-content { max-width: none; padding: 0; margin: 0; }

/* Tablet and phone */
@media (max-width: 900px) {
	.cw-header-row { flex-direction: column; text-align: center; gap: 10px; }
	.cw-slogan, .cw-phone { text-align: center; }
	.cw-slogan { font-size: 14px; }
	.cw-toplinks-menu { justify-content: center; }
	.cw-nav-label { display: block; color: #fff; padding: 12px 0; text-align: center; font-weight: 600; text-transform: uppercase; cursor: pointer; }
	.cw-nav-label::before { content: "\2630  "; }
	.cw-nav-menu { display: none; flex-direction: column; }
	.cw-nav-toggle:checked ~ .cw-nav-menu { display: flex; }
	.cw-nav-menu a { padding: 12px 10px; text-align: center; }
	.cw-nav-menu .sub-menu { position: static; display: block; min-width: 0; background: rgba(12,34,48,0.35); }
	.cw-nav-menu .menu-item-has-children > a::after { content: ""; }
	.cw-footer-row { grid-template-columns: 1fr; text-align: center; }
	.cw-footer-logo { margin: 0 auto 14px; }
}
