/*
 Theme Name:   Nichols WD
 Theme URI:    https://nicholswd.com
 Description:  Theme Designed to Maximize Effeciency and Boost what already Exists.
 Author:       Dreyton Nichols
 Author URI:   https://nicholswd.com
 Template:     Divi
 Version:      10.4.2
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         accessibility-ready
 Text Domain:  nicholswd
*/




/* =======================================================================
   GLOBAL STYLES
   ===================================================================== */
   
/* =====================================================
   TOP BLUE MENU – DESKTOP LINK COLORS
   Last item highlighted in orange, others white
   ===================================================== */
.top_blue_menu .et_pb_menu__menu nav.et-menu-nav > ul.et-menu > li:last-child > a {
  color: #DD9739 !important;
}
.top_blue_menu .et_pb_menu__menu nav.et-menu-nav > ul.et-menu > li:not(:last-child) > a {
  color: #FFF !important;
}

/* =====================================================
   TOP BLUE MENU – MOBILE LINK COLORS
   Last item highlighted in orange, others white
   ===================================================== */
.top_blue_menu .et_mobile_menu > li:last-child > a {
  color: #DD9739 !important;
}
.top_blue_menu .et_mobile_menu > li:not(:last-child) > a {
  color: #FFF !important;
}

/* =====================================================
   MAIN MENU – DESKTOP DROPDOWN WIDTH & SPACING
   Controls dropdown container size and padding
   ===================================================== */
.main_menu .et-menu li ul.sub-menu {        
  min-width: 25vw;
  padding: 0.4vw 0;
}

/* =====================================================
   MAIN MENU – DESKTOP DROPDOWN LIST ITEMS
   Forces full-width list items
   ===================================================== */
.main_menu .et-menu li ul.sub-menu li {
  width: 100%;
}

/* =====================================================
   MAIN MENU – DESKTOP DROPDOWN LINKS
   Controls padding, font size, and alignment
   ===================================================== */
.main_menu .et-menu li ul.sub-menu li a {
  display: block;
  width: 100%;
  padding: 0.7vw 1.4vw;
  font-size: 0.95vw;
  line-height: 1.4;
  text-align: left;
  box-sizing: border-box;
}

/* =====================================================
   MOBILE MENU – HAMBURGER ICON SWITCH (OPEN STATE)
   Changes hamburger to X when menu is open
   ===================================================== */
#et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before,
.et_pb_module.et_pb_menu .et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before {
	content: '\4d';
}

/* =====================================================
   MOBILE MENU – SUBMENU TOGGLE HIT AREA
   Positions and sizes the tap target for caret
   ===================================================== */
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
ul.et_mobile_menu li.page_item_has_children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.page_item_has_children .mobile-toggle {
	width: 2rem;
	height: 100%;
	padding: 0px !important;
	max-height: 44px;
	border: none;
	position: absolute;
	right: 0px;
	top: 0px;
	z-index: 999;
	background-color: transparent;
}

/* =====================================================
   MOBILE MENU – POSITIONING FOR PARENT ITEMS
   Ensures submenu toggles position correctly
   ===================================================== */
ul.et_mobile_menu>li.menu-item-has-children,
ul.et_mobile_menu>li.page_item_has_children,
ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.page_item_has_children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children {
	position: relative;
}

/* =====================================================
   MOBILE MENU – REMOVE DEFAULT BACKGROUND
   Prevents Divi highlight on parent items
   ===================================================== */
.et_mobile_menu .menu-item-has-children>a,
.et-db #et-boc .et-l .et_mobile_menu .menu-item-has-children>a {
	background-color: transparent;
}

/* =====================================================
   MOBILE MENU – HIDE SUBMENUS BY DEFAULT
   Required for accordion behavior
   ===================================================== */
ul.et_mobile_menu .menu-item-has-children .sub-menu,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu {
	display: none !important;
	visibility: hidden !important;
}

/* =====================================================
   MOBILE MENU – SHOW SUBMENUS WHEN TOGGLED OPEN
   Triggered via JS by adding .visible
   ===================================================== */
ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible {
	display: block !important;
	visibility: visible !important;
}

/* =====================================================
   MOBILE MENU – TOGGLE ICON ALIGNMENT
   Centers caret and ensures visibility
   ===================================================== */
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle {
	text-align: center;
	opacity: 1;
}

/* =====================================================
   MOBILE MENU – CARET ICON (CLOSED STATE)
   Orange icon with white circular background
   ===================================================== */
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after {
	top: 10px;
	position: relative;
	font-family: "ETModules";
	content: '\33';
	color: #dd9739;
	background: #ffffff;
	border-radius: 50%;
	padding: 3px;
}

/* =====================================================
   MOBILE MENU – CARET ICON (OPEN STATE)
   Switches icon direction when expanded
   ===================================================== */
ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after {
	content: '\32';
	color: #dd9739;
}

/* =====================================================
   MOBILE MENU – DROPDOWN POINTER TRIANGLE
   Visual pointer above mobile menu panel
   ===================================================== */
.et_pb_menu_0.et_pb_menu .et_mobile_menu:after {
	position: absolute;
	right: 5%;
	margin-left: -20px;
	top: -14px;
	width: 0;
	height: 0;
	content: '';
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-bottom: 20px solid #ffffff;
}

/* =====================================================
   MOBILE MENU – BACKGROUND & BORDER RADIUS
   Applies white background and rounded corners
   ===================================================== */
.et_pb_menu_0.et_pb_menu .et_mobile_menu,
.et_pb_menu_0.et_pb_menu .et_mobile_menu ul {
	background-color: #ffffff!important;
	border-radius: 10px;
}

/* =====================================================
   MOBILE MENU – ACTIVE / CURRENT LINK COLOR
   Highlights current page and ancestors
   ===================================================== */
.et_mobile_menu li.current-menu-item > a,
.et_mobile_menu li.current-menu-ancestor > a {
	color: #dd9739 !important;
}

/* =====================================================
   MOBILE MENU – DIVIDERS BETWEEN ITEMS
   Thin white separators for top-level items
   ===================================================== */
.et_mobile_menu > li {
	border-bottom: 1px solid rgba(255,255,255,0.7);
}

.et_mobile_menu > li:last-child {
	border-bottom: none;
}

/* =====================================================
   TEXT UTILITY — GRADIENT TEXT
   ===================================================== */
.gradient-text {
  background: linear-gradient(90deg, #13426D 0%, #DD9739 83.88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

/* =====================================================
   IMAGE UTILITY — CIRCULAR CROPPING
   ===================================================== */
.square-img img {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 50%;
}

/* =========================================================================
   Contact
   ======================================================================= */
   
/* =====================================================
   WPFORMS — INPUTS, TEXTAREAS, SELECTS
   ===================================================== */
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form input[type="url"],
.wpforms-form input[type="number"],
.wpforms-form textarea,
.wpforms-form select {
  background-color: #FFFFFF;
  border: 1px solid rgba(19, 66, 109, 0.15);
  border-radius: 0;
  padding: 14px 18px;
  font-size: 16px;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

/* =====================================================
   WPFORMS — FIELD STACKING & LABELS
   ===================================================== */
.wpforms-form .wpforms-field {
  display: flex;
  flex-direction: column-reverse;
  margin-bottom: 22px;
}

.wpforms-form label.wpforms-field-label {
  color: #13426D;
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
  text-align: left;
}

/* =====================================================
   WPFORMS — FOCUS STATES
   ===================================================== */
.wpforms-form input:focus,
.wpforms-form textarea:focus,
.wpforms-form select:focus {
  outline: none;
  border-color: #DD9739;
  box-shadow: 0 6px 18px rgba(221, 151, 57, 0.25);
  transform: translateY(-1px);
}

/* =====================================================
   WPFORMS — SUBMIT BUTTON
   ===================================================== */
.wpforms-form button[type="submit"] {
  background-color: #DD9739;
  color: #FFFFFF;
  border: none;
  border-radius: 0;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wpforms-form .wpforms-submit-container {
  text-align: right;
}

.wpforms-form button[type="submit"]:hover {
  background-color: #c8842f;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

/* =====================================================
   WPFORMS — NEXT / PREVIOUS PAGE BUTTONS
   ===================================================== */
.wpforms-form .wpforms-page-button {
  background-color: #DD9739;
  color: #FFFFFF;
  border: none;
  border-radius: 0;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wpforms-form .wpforms-page-button:hover {
  background-color: #c8842f;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

/* =====================================================
   WPFORMS — DROPDOWN Z-INDEX FIX
   ===================================================== */
.wpforms-form .wpforms-field {
  position: relative;
  z-index: 8999;
}

.wpforms-form select {
  position: relative;
  z-index: 9999;
}


   
/* ==========================================================================
   SLIDER ON HOMEPAGE AND LOCATE & EXPAND
   ========================================================================== */
  
   /* =====================================================
   REGION SLIDER — BASE DESCRIPTION CONTAINER
   Overrides Divi centering and forces full-width text
   ===================================================== */
.region-slider .et_pb_slide_description {
  text-align: left;
  max-width: 100% !important;
  width: 100%;
  margin: 0; /* undo Divi's auto-centering */
}

/* =====================================================
   REGION SLIDER — H2 HEADINGS (PRIMARY)
   ===================================================== */
.region-slider .region-h2 {
  font-family: 'Geologica', sans-serif !important;
  font-size: 3.2vw;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.8em;
}

/* =====================================================
   REGION SLIDER — H2 HEADINGS (ALT / ORANGE)
   ===================================================== */
.region-slider .region-h2-w {
  font-family: 'Geologica', sans-serif !important;
  color: #DD9739 !important;
  font-size: 3.2vw;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.8em;
}

/* =====================================================
   REGION SLIDER — INLINE H2 COLOR UTILITIES
   ===================================================== */
.region-slider .region-h2-highlight {
  color: #DD9739;
}

.region-slider .region-h2-highlight-w {
  color: #13426D;
}

/* =====================================================
   REGION SLIDER — PARAGRAPH COPY
   ===================================================== */
.region-slider .region-p {
  font-family: 'Geologica', sans-serif !important;
  font-size: 1.4vw;
  font-weight: 200;
  line-height: 1.6em;
}

/* =====================================================
   REGION SLIDER — NAME / ATTRIBUTION LINE
   ===================================================== */
.region-slider .region-p strong,
.region-slider .region-name {
  font-weight: 600;
  display: block;
  font-size: 1.4vw;
  font-family: 'Geologica', sans-serif !important;
}

/* =====================================================
   REGION SLIDER — INTERNAL FLEX LAYOUT
   Text left, image right
   ===================================================== */
.region-slider .region-slide-inner {
  display: flex;
  align-items: center;
  gap: 3vw;
}

/* =====================================================
   REGION SLIDER — LEFT TEXT COLUMN
   ===================================================== */
.region-slider .region-slide-text {
  width: 65%; /* adjust as needed */
}

/* =====================================================
   REGION SLIDER — DECORATIVE QUOTE IMAGE
   ===================================================== */
.region-slider .region-quote-img {
  width: 18vw;
}

/* =====================================================
   REGION SLIDER — RIGHT IMAGE COLUMN
   ===================================================== */
.region-slider .region-slide-bigimg-wrap {
  width: 35%;
  display: flex;
  justify-content: flex-end;
}

/* =====================================================
   REGION SLIDER — PRIMARY IMAGE STYLING
   ===================================================== */
.region-slider .region-big-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 850px;
}

/* =====================================================
   REGION SLIDER — MOBILE ADJUSTMENTS
   ===================================================== */
@media (max-width: 980px) {

  .region-slider .region-slide-copy {
    max-width: 80vw;
  }

  .region-slider .region-h2,
  .region-slider .region-h2-w {
    font-size: 1.5rem;
  }

  .region-slider .region-slide-inner {
    flex-direction: column-reverse;
  }

  .region-slider .region-slide-bigimg-wrap,
  .region-slider .region-slide-text {
    width: 100%;
  }

  .region-slider .region-big-img {
    width: 50vw;
    border-radius: 170vw;
  }

  .region-slider .region-slide-bigimg-wrap {
    justify-content: flex-start;
  }

  .region-slider .region-name,
  .region-slider .region-p {
    font-size: 0.9rem;
  }

  .region-slider .region-quote-img {
    width: 15vw;
    margin-bottom: 2vw;
  }
}

/* =======================================================================
   STRATEGIC IMPERATIVES
   ========================================================================= */
/* =====================================================
   SCROLLABLE TEXT MODULE — LEFT SCROLLBAR
   ===================================================== */
.left-scroll-text .et_pb_text_inner {
  max-height: 20vw;
  overflow-y: auto;
  padding-right: 2.5vw;
  position: relative;
}

/* =====================================================
   SCROLLBAR — WEBKIT / CHROMIUM
   ===================================================== */
.left-scroll-text .et_pb_text_inner::-webkit-scrollbar {
  width: 6px;
}

.left-scroll-text .et_pb_text_inner::-webkit-scrollbar-track {
  background-color: #f5f5f5;
  border-radius: 999px;
}

.left-scroll-text .et_pb_text_inner::-webkit-scrollbar-thumb {
  background-color: #d9d9d9;
  border-radius: 999px;
  border: 2px solid #f5f5f5;
  background-clip: padding-box;
}

.left-scroll-text .et_pb_text_inner::-webkit-scrollbar-thumb:hover {
  background-color: #bfbfbf;
}

/* =====================================================
   SCROLLBAR — FIREFOX FALLBACK
   ===================================================== */
@supports (scrollbar-width: thin) {
  .left-scroll-text .et_pb_text_inner {
    scrollbar-width: thin;
    scrollbar-color: #d9d9d9 #f5f5f5;
  }
}

/* =====================================================
   SCROLLABLE TEXT — MOBILE OVERRIDES
   ===================================================== */
@media (max-width: 767px) {
  .left-scroll-text .et_pb_text_inner {
    max-height: 85vw;
    padding-right: 4vw;
  }

  .left-scroll-text .et_pb_text_inner::-webkit-scrollbar {
    width: 8px;
  }
}

/* ========================================================================
   INNOVATION AWARDS
   ======================================================================== */
/* =====================================================
   DIVI TABS — GRADIENT HORIZONTAL TABS
   ===================================================== */
.gradient-tabs .et_pb_tabs_controls {
  display: flex !important;
  gap: 3vw;
  border-bottom: none !important;
  padding: 0;
}

.gradient-tabs .et_pb_tabs_controls li:first-child {
  margin-left: 13vw;
}

/* =====================================================
   DIVI TABS — BASE TAB STYLE
   ===================================================== */
.gradient-tabs .et_pb_tabs_controls li {
  float: none !important;
  margin: 0;
  padding: 0.6em 1em;
  background: #13426D;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* =====================================================
   DIVI TABS — ACTIVE STATE
   ===================================================== */
.gradient-tabs .et_pb_tabs_controls li.et_pb_tab_active {
  background: linear-gradient(90deg, #13426D 0%, #DD9739 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* =====================================================
   DIVI TABS — HOVER (INACTIVE ONLY)
   ===================================================== */
.gradient-tabs .et_pb_tabs_controls li:hover:not(.et_pb_tab_active) {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   DIVI TABS — MOBILE LAYOUT
   ===================================================== */
@media (max-width: 767px) {
  .gradient-tabs .et_pb_tabs_controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 3vw;
  }

  .gradient-tabs .et_pb_tabs_controls li {
    font-size: 3.4vw;
    padding: 0.6em 1.1em;
  }

  .gradient-tabs .et_pb_tabs_controls li:first-child {
    margin-left: 0;
  }
}

/* =====================================================
   DIVI TABS — STACKED GRID VARIANT
   ===================================================== */
.gradient-tab-stacked .et_pb_tabs_controls {
  display: grid !important;
  grid-template-columns: repeat(3, auto);
  column-gap: 3vw;
  row-gap: 2vw;
  justify-content: center;
  border-bottom: none !important;
  padding: 0;
}

/* =====================================================
   STACKED TABS — BASE STYLE
   ===================================================== */
.gradient-tab-stacked .et_pb_tabs_controls li {
  float: none !important;
  margin: 0;
  padding: 0.6em 1.3em;
  background: #13426D;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* =====================================================
   STACKED TABS — ACTIVE & HOVER
   ===================================================== */
.gradient-tab-stacked .et_pb_tabs_controls li.et_pb_tab_active {
  background: linear-gradient(90deg, #13426D 0%, #DD9739 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.gradient-tab-stacked .et_pb_tabs_controls li:hover:not(.et_pb_tab_active) {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   STACKED TABS — MOBILE RESET (CLEAN & READABLE)
   ===================================================== */
@media (max-width: 767px) {

  .gradient-tab-stacked .et_pb_tabs_controls {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 0 4vw;
  }

  .gradient-tab-stacked .et_pb_tabs_controls li {
    width: 100%;
    font-size: 15px; /* fixed, readable */
    padding: 0.9em 1.2em;
    text-align: center;
    line-height: 1.25;
    white-space: normal; /* allow wrapping */
  }

  .gradient-tab-stacked .et_pb_tabs_controls li.et_pb_tab_active {
    transform: none; /* remove jumpiness on tap */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  }

}


/* ==========================================================================
   EXTRAS
   ========================================================================== */


/* =====================================================
   GSC ACCORDION — CUSTOM IMAGE ICON
   ===================================================== */
.gsc-accordion .et_pb_toggle_title::before {
	content: "";
	background-image: url("https://media.nicholswd.com/gsc/icons/Greater%20St.%20Cloud%20Logo%20EnergyCurrent.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;

	width: 28px;
	height: 28px;

	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}
/* Rotate icon when toggle is open */
.gsc-accordion .et_pb_toggle.et_pb_toggle_open .et_pb_toggle_title::before {
	transform: translateY(-50%) rotate(180deg);
}

