/*
Theme Name: WIN Hello Child
Theme URI: https://waterinvestmentnetwork.com/
Description: Lightweight Hello Elementor child theme for Water Investment Network.
Author: AbakusWeb
Template: hello-elementor
Version: 0.2.1
Text Domain: win-hello-child
*/

:root {
  --win-ink: #2e2e2e;
  --win-copy: #666a6c;
  --win-blue: #5f7f90;
  --win-blue-dark: #3e6173;
  --win-pale: #edf6fa;
  --win-line: #dbe5e9;
  --win-white: #ffffff;
  --win-black: #050505;
  --win-shell: 984px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--win-copy);
  background: var(--win-white);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.win-nav-open {
  overflow: hidden;
}

a {
  color: var(--win-blue);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--win-blue-dark);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.7em;
  color: var(--win-ink);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.015em;
}

h1 { font-size: clamp(30px, 4vw, 42px); }
h2 { font-size: clamp(23px, 3vw, 30px); }
h3 { font-size: clamp(19px, 2.3vw, 24px); }
h4 { font-size: 17px; }

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text,
.win-skip-link:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.win-skip-link:focus {
  position: fixed;
  z-index: 999999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: #000;
}

/* Theme shell used automatically by the PHP header/footer. */
.win-shell {
  width: min(calc(100% - 40px), var(--win-shell));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Elementor page defaults
   No CSS classes are required in the editor.
   -------------------------------------------------------------------------- */

.elementor-page .site-main,
.elementor-page main {
  max-width: none;
  padding: 0;
}

.elementor-widget-text-editor p:last-child,
.elementor-widget-heading .elementor-heading-title {
  margin-bottom: 0;
}

.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
  margin-top: 0;
  margin-bottom: 1.2em;
  padding-left: 1.25em;
}

/* Use an H6 Heading widget for small uppercase section labels. */
.elementor-widget-heading h6.elementor-heading-title {
  color: var(--win-blue);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Elementor image captions match the old GoDaddy look. */
.elementor-widget-image .widget-image-caption {
  margin: 0;
  padding: 5px 10px;
  color: var(--win-copy);
  background: var(--win-pale);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

/* Fallback button style. Configure the same values in Site Settings > Buttons. */
.elementor-widget-button .elementor-button,
.elementor-button {
  min-height: 44px;
  padding: 12px 25px;
  border: 1px solid var(--win-black);
  border-radius: 0;
  color: var(--win-white);
  background: var(--win-black);
  box-shadow: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.2em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease;
}

.elementor-widget-button .elementor-button:hover,
.elementor-widget-button .elementor-button:focus-visible,
.elementor-button:hover,
.elementor-button:focus-visible {
  border-color: var(--win-black);
  color: var(--win-black);
  background: var(--win-white);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.win-site-header {
  position: relative;
  z-index: 100;
  background: var(--win-white);
}

.win-header-desktop {
  display: block;
  padding: 30px 0 21px;
}

.win-header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
}

.win-header-logo {
  grid-column: 2;
  justify-self: center;
}

.win-header-logo .custom-logo,
.win-mobile-logo .custom-logo {
  width: auto;
  max-width: 168px;
  height: 75px;
  object-fit: contain;
}

.win-site-title {
  color: #00179a;
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
}

.win-header-phone {
  grid-column: 3;
  justify-self: end;
  color: var(--win-blue);
  font-size: 22px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.win-primary-nav {
  margin-top: 12px;
}

.win-primary-nav ul,
.win-footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 11px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.win-primary-nav a {
  position: relative;
  display: block;
  padding: 6px 0 8px;
  color: var(--win-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
}

.win-primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--win-blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.win-primary-nav a:hover::after,
.win-primary-nav a:focus-visible::after,
.win-primary-nav .current-menu-item > a::after,
.win-primary-nav .current_page_item > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.win-mobile-header {
  display: none;
}

.win-menu-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: var(--win-ink);
  background: transparent;
  cursor: pointer;
}

.win-menu-toggle-lines,
.win-menu-toggle-lines::before,
.win-menu-toggle-lines::after {
  display: block;
  width: 25px;
  height: 3px;
  background: #1a7efb;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.win-menu-toggle {
	background-color: #fff!important;
	border-color: #1a7efb!important;
	display: inline-flex;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        flex-direction: column;
}

.win-menu-toggle-lines {
  position: relative;
}

.win-menu-toggle-lines::before {
  position: absolute;
  top: -7px;
}

.win-menu-toggle-lines::after {
  position: absolute;
  top: 7px;
}

.win-menu-toggle[aria-expanded="true"] .win-menu-toggle-lines {
  background: transparent;
}

.win-menu-toggle[aria-expanded="true"] .win-menu-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.win-menu-toggle[aria-expanded="true"] .win-menu-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.win-site-footer {
  padding: 58px 0 26px;
  color: var(--win-copy);
  background: var(--win-white);
  text-align: center;
}

.win-footer-nav a {
  color: var(--win-blue);
  font-size: 16px;
  text-decoration: none;
}

.win-footer-details {
  margin-top: 34px;
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.win-footer-name {
  color: var(--win-ink);
  font-weight: 700;
}

.win-footer-phone {
  color: var(--win-blue);
  text-decoration: none;
}

.win-footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  color: #737779;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.win-footer-credit {
  text-align: right;
}

/* Floating contact visual replacement. */
.win-chat-fab {
  position: fixed;
  z-index: 900;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--win-white);
  background: var(--win-black);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform 160ms ease;
}

.win-chat-fab:hover,
.win-chat-fab:focus-visible {
  color: var(--win-white);
  transform: translateY(-2px);
}

.win-chat-fab svg {
  width: 28px;
  height: 28px;
}

/* --------------------------------------------------------------------------
   Fluent Forms and generic WordPress forms
   No wrapper class is needed.
   -------------------------------------------------------------------------- */

.fluentform .ff-el-group,
.wp-block-search,
form p {
  margin-bottom: 28px;
}

.fluentform label,
form label {
  color: var(--win-copy);
  font-size: 14px;
  font-weight: 400;
}

.fluentform .ff-el-form-control,
form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
form textarea,
form select {
  width: 100%;
  min-height: 45px;
  padding: 10px 8px;
  border: 0;
  border-bottom: 1px solid #d8d8d8;
  border-radius: 0;
  color: var(--win-ink);
  background: transparent;
  box-shadow: none;
  outline: none;
}

.fluentform textarea.ff-el-form-control,
form textarea {
  min-height: 140px;
  border: 1px solid #d8d8d8;
  resize: vertical;
}

.fluentform .ff-el-form-control:focus,
form input:focus,
form textarea:focus,
form select:focus {
  border-color: var(--win-blue);
  box-shadow: none;
}

.fluentform .ff-btn-submit,
form input[type="submit"],
form button[type="submit"] {
  min-width: 110px;
  min-height: 44px;
  padding: 12px 25px;
  border: 1px solid var(--win-black);
  border-radius: 0;
  color: #fff;
  background: #000;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.fluentform .ff-btn-submit:hover,
form input[type="submit"]:hover,
form button[type="submit"]:hover {
  color: #000;
  background: #fff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .win-shell {
    width: min(calc(100% - 32px), var(--win-shell));
  }

  .win-header-desktop {
    display: none;
  }

  .win-mobile-header {
    position: relative;
    z-index: 1000;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    background: var(--win-white);
  }

  .win-mobile-bar {
    position: relative;
    z-index: 1002;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    background: var(--win-white);
  }

  .win-menu-toggle {
    position: relative;
    z-index: 1003;
    flex: 0 0 auto;
  }

  .win-mobile-logo .custom-logo {
    max-width: 124px;
    height: 56px;
  }

  .win-mobile-nav {
    position: fixed;
    z-index: 1001;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    visibility: hidden;
    padding: 26px 24px 40px;
    background: #fff;
    opacity: 0;
    overflow-y: auto;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .win-mobile-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .win-mobile-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .win-mobile-nav li + li {
    border-top: 1px solid #ececec;
  }

  .win-mobile-nav a {
    display: block;
    padding: 16px 4px;
    color: var(--win-ink);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .win-mobile-phone {
    display: inline-block;
    margin-top: 24px;
    color: var(--win-blue);
    font-size: 16px;
    text-decoration: none;
  }

  .win-footer-bottom {
    display: block;
    text-align: center;
  }

  .win-footer-credit {
    margin-top: 12px;
    text-align: center;
  }

  .win-chat-fab {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   WIN CHAT POPUP
========================================================= */

.win-chat-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	pointer-events: none;
	visibility: hidden;
}

.win-chat-popup.is-open {
	pointer-events: auto;
	visibility: visible;
}

.win-chat-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.15);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.win-chat-popup.is-open .win-chat-popup__overlay {
	opacity: 1;
}

.win-chat-popup__panel {
	position: absolute;
	right: 32px;
	bottom: 100px;
	width: min(400px, calc(100vw - 32px));
	max-height: calc(100vh - 130px);
	overflow-y: auto;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
	opacity: 0;
	transform: translateY(20px) scale(0.98);
	transition:
		opacity 0.25s ease,
		transform 0.25s ease;
}

.win-chat-popup.is-open .win-chat-popup__panel {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.win-chat-popup__header {
	position: relative;
	padding: 22px 58px 18px 24px;
	background: #c7e2ef;
}

.win-chat-popup__header h3 {
	margin: 0;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 400;
	color: #222;
}

.win-chat-popup__header p {
	margin: 5px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #5c6d75;
}

.win-chat-popup__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.win-chat-popup__close span {
	position: absolute;
	top: 14px;
	left: 4px;
	width: 22px;
	height: 2px;
	background: #263238;
}

.win-chat-popup__close span:first-child {
	transform: rotate(45deg);
}

.win-chat-popup__close span:last-child {
	transform: rotate(-45deg);
}

.win-chat-popup__message {
	position: relative;
	margin: 18px 24px 6px;
	padding: 15px 16px;
	background: #eef7fb;
	border-radius: 5px;
	font-size: 15px;
	line-height: 1.45;
	color: #3f464a;
}

.win-chat-popup__message::after {
	content: "";
	position: absolute;
	left: 18px;
	bottom: -9px;
	border-width: 9px 9px 0 0;
	border-style: solid;
	border-color: #eef7fb transparent transparent transparent;
}

.win-chat-popup__form {
	padding: 20px 24px 24px;
}

/* Fluent Form inside chat */

.win-chat-popup .fluentform {
	margin: 0;
}

.win-chat-popup .ff-el-group {
	margin-bottom: 18px;
}

.win-chat-popup .ff-el-form-control {
	width: 100%;
	padding: 11px 0;
	border: 0;
	border-bottom: 1px solid #d7d7d7;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 15px;
	color: #555;
}

.win-chat-popup textarea.ff-el-form-control {
	min-height: 125px;
	padding: 12px;
	border: 1px solid #d7d7d7;
	resize: vertical;
}

.win-chat-popup .ff-el-form-control:focus {
	border-color: #6e8b9b;
	box-shadow: none;
	outline: none;
}

.win-chat-popup .ff-btn-submit {
	display: block;
	width: auto;
	min-width: 120px;
	margin: 0 auto;
	padding: 14px 30px;
	border: 1px solid #000;
	border-radius: 0;
	background: #000;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
}

.win-chat-popup .ff-btn-submit:hover {
	background: #fff;
	color: #000;
}

body.win-chat-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.win-chat-popup__panel {
		right: 12px;
		bottom: 82px;
		width: calc(100vw - 24px);
		max-height: calc(100vh - 100px);
	}

	.win-chat-popup__header {
		padding: 18px 54px 16px 18px;
	}

	.win-chat-popup__header h3 {
		font-size: 20px;
	}

	.win-chat-popup__message {
		margin: 16px 18px 4px;
	}

	.win-chat-popup__form {
		padding: 18px;
	}
}

.win-chat-popup__close {
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.win-chat-popup__close span {
	top: 16px;
	left: 6px;
	width: 22px;
	height: 2px;
	background: #222;
}