/*
Theme Name:   ESI Hello Elementor Child
Theme URI:    https://environmentalsi.com/
Description:  Child theme of Hello Elementor for Environmental Solutions & Innovations. Holds site custom CSS (migrated from Customizer > Additional CSS) and WCAG 2.1 AA accessibility fixes (ported from the former "ADA Hello Elementor" fork).
Author:       ESI
Template:     hello-elementor
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GNU General Public License v3 or later
License URI:  https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:  esi-hello-child
*/

/* ==========================================================================
   1. Site custom CSS (migrated verbatim from Customizer > Additional CSS)
   ========================================================================== */
@media (max-width: 1024px) {
  .elementor-7 .elementor-element.elementor-element-98c5d56 .elementskit-menu-hamburger {
    padding: 8px 8px 8px 8px;
    width: 45px;
    border-radius: 3px;
    background-color: rgba(0,0,0,.0);
  }
  .elementor-7 .elementor-element.elementor-element-98c5d56 .elementskit-menu-close {
    padding: 8px 8px 8px 8px;
    margin: 12px 12px 12px 12px;
    width: 45px;
    border-radius: 3px;
    background-color: rgba(0,0,0,.0);
  }
}
.btn-primary {font-family: "Helvetica", Sans-serif;
  font-size: 18px;
  line-height: 70px;
  letter-spacing: 0.3px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-radius: :
	border-color: var( --e-global-color-accent ); 
  padding: 20px 30px 17px 20px;
background-color: var( --e-global-color-accent );
	color: #ffffff;

}
.btn-ghost {font-family: "Helvetica", Sans-serif;
  font-size: 18px;
  line-height: 70px;
  letter-spacing: 0.3px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-radius: ;
margin-top: 20px !important;
  padding: 20px 30px 17px 20px;
}

.text-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 5em; /* ~3 lines */
    line-height: 1em;
}
.menulink_p,
.menulink_b,
.menulink_g,
.menulink_a {
    display: block;
    width: 100%;
    padding: 15px 10px;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease;
	color: rgb(28, 28, 28);
}

.menulink_p:hover {
    background-color: #4B006e;
    color: #ffffff;
}

.menulink_b:hover {
    background-color: #6e1400;
    color: #ffffff;
}

.menulink_g:hover {
    background-color: #236e00;
    color: #ffffff;
}

.menulink_a:hover {
    background-color: #005a63;
    color: #ffffff;
}

.footer-links a {
    display: block;
    width: 100%;
    padding: 0px 0px;
    color: #ffffff;
    transition: background-color 0.4s ease, color 0.0s ease;
}

.footer-links a:hover {
    background-color: rgba(255, 255, 255, 0.7);
    color: rgba(0, 0, 0, 0.9) !important;
	padding-left: 10px;
}

.footer-links br:has(+ a) {
    display: none;
}

.rounded {
	border-radius: 20px !important;
margin-top: 30px;
margin-bottom: 30px
}
.menudrop {
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.2) !important;
}

.toplevel {
    z-index: 2147483647;
}

/* Modern Clean Typography Styles */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 2.5rem; /* 40px */
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem; /* 32px */
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.25rem;
  margin-bottom: 0.625rem;
}

ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  line-height: 1.6;
}

li {
  margin-bottom: 0.0rem;
  font-size: 1rem;
  font-weight: 400;
}

li:last-child {
  margin-bottom: 0;
}

/* Optional: Nested list styling */
ul ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.btn_purple {

font-weight: 500;
  text-decoration: none;
  padding: 20px 30px 20px 30px !important;
color: #ffffff;
border-color:#ffffff;
}

.btn_purple:hover {
	background-color: rgba(75, 0, 110,.70)
}

.msb-modal-close {
		background-color: rgba(75, 0, 110,.0) !important;
	border-color:rgba(75, 0, 110,.0) ;
}


.msb-modal-close:hover {
		background-color: rgba(75, 0, 110,.0) !important;
	border-color:rgba(75, 0, 110,.0) ;
}

/* ==========================================================================
   2. Accessibility (WCAG 2.1 AA)
   ========================================================================== */

/* 2.1 Skip link - hidden until focused (2.4.1) */
.skip-link.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	width: auto;
	height: auto;
	top: 8px;
	left: 8px;
	z-index: 2147483647;
	display: block;
	padding: 12px 24px;
	background: #ffffff;
	color: #4B006E;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: underline;
	outline: 3px solid #4B006E;
	outline-offset: 2px;
}
#main-content:focus {
	outline: none;
}

/* 2.2 Visible focus indicator on every interactive element (2.4.7).
   Two-tone ring stays visible on white, purple, photo and dark backgrounds. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
.elementor-button:focus-visible,
.ekit-menu-nav-link:focus-visible,
.elementskit-menu-hamburger:focus-visible,
.elementskit-menu-close:focus-visible {
	outline: 3px solid #FFBF47 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 5px #1C1C1C !important;
	border-radius: 2px;
}

/* 2.3 Links inside body copy are underlined so they are not identified
   by color alone (1.4.1). Buttons and image/card links are excluded. */
#main-content .elementor-widget-text-editor p a:not(.elementor-button),
#main-content .elementor-widget-text-editor li a:not(.elementor-button) {
	text-decoration: underline;
	text-underline-offset: 2px;
}
#main-content .elementor-widget-text-editor a:hover,
#main-content .elementor-widget-text-editor a:focus {
	text-decoration-thickness: 2px;
}

/* 2.4 Form field boundaries need 3:1 contrast (1.4.11) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="password"],
select,
textarea {
	border-color: #767676 !important;
}
.wpcf7-not-valid {
	border-color: #B00020 !important;
}
.wpcf7-not-valid-tip {
	color: #B00020;
	font-weight: 600;
}

/* 2.5 Respect reduced-motion preferences (2.3.3 best practice) */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
