/* Dropdown caret: use CSS triangle so missing Fontello never shows a box glyph */
.submenu-toggle:before {
  content: "" !important;
  display: inline-block !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 4px solid transparent !important;
  border-right: 4px solid transparent !important;
  border-top: 5px solid currentColor !important;
  font-size: 0 !important;
  line-height: 0 !important;
  vertical-align: middle;
}

.nav-menu .active > a > .submenu-toggle:before,
.nav-menu ul ul .submenu-toggle:before {
  content: "" !important;
  border-left: 4px solid transparent !important;
  border-right: 4px solid transparent !important;
  border-top: 5px solid currentColor !important;
}

.nav-menu ul ul .submenu-toggle:before {
  border-top: 4px solid transparent !important;
  border-bottom: 4px solid transparent !important;
  border-left: 5px solid currentColor !important;
  border-right: 0 !important;
}

/* Footer grid – ensure Bootstrap columns layout correctly on all pages */
.site-footer .footer-widgets .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.site-footer .footer-widgets [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px 24px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .site-footer .footer-widgets .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .site-footer .footer-widgets .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

.site-footer .widget ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1em;
}

.site-footer .widget li {
  margin-bottom: 0.35em;
  line-height: 1.5;
}

.site-footer .widget h5,
.site-footer .widget h6 {
  margin: 0 0 0.75em;
}

/* Qi animated text – show content without Elementor scroll JS */
.elementor-invisible,
.qodef-qi-animated-text .qodef-e-word-holder,
.qodef-qi-animated-text .qodef-m-title {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.qodef-qi-animated-text .qodef-m-title {
  overflow: visible !important;
}

/* Service page heroes – taller banner like original Densys services pages */
.elementor-11441 .elementor-widget-prime-slider-general,
.elementor-46 .elementor-widget-prime-slider-general,
.elementor-11441 .bdt-prime-slider,
.elementor-46 .bdt-prime-slider,
.elementor-11441 .bdt-prime-slider-skin-general,
.elementor-46 .bdt-prime-slider-skin-general {
  width: 100%;
  display: block;
}

.elementor-11441 .bdt-prime-slider-skin-general .bdt-position-relative,
.elementor-46 .bdt-prime-slider-skin-general .bdt-position-relative,
.elementor-page-11441 .bdt-prime-slider-skin-general .bdt-position-relative,
.elementor-page-46 .bdt-prime-slider-skin-general .bdt-position-relative {
  height: clamp(420px, 48vw, 560px) !important;
  min-height: 420px !important;
  max-height: 560px;
  overflow: hidden;
}

.elementor-11441 .bdt-prime-slider-skin-general .bdt-slideshow-items,
.elementor-46 .bdt-prime-slider-skin-general .bdt-slideshow-items,
.elementor-11441 .bdt-prime-slider-skin-general .bdt-slideshow-item,
.elementor-46 .bdt-prime-slider-skin-general .bdt-slideshow-item {
  position: relative;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0;
  padding: 0;
}

.elementor-11441 .bdt-prime-slider-skin-general .bdt-slideshow-item .bdt-ps-slide-img,
.elementor-46 .bdt-prime-slider-skin-general .bdt-slideshow-item .bdt-ps-slide-img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.elementor-11441 .elementor-element-2b7f355,
.elementor-46 .elementor-element-1b6dbf2,
.elementor-46 .elementor-element-337e3df {
  min-height: 0 !important;
  width: 100%;
}

/* Services / content two-column sections */
.elementor-element-5031913 > .e-con-inner,
.elementor-element-f85d769 .e-con-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.elementor-element-53914ed {
  flex: 0 0 100%;
  max-width: 220px;
}

.elementor-element-2c02002 {
  flex: 1 1 320px;
  min-width: 0;
}

/* Finance calculator */
.solar-finance-calculator {
  padding: 32px 0;
}

.solar-finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .solar-finance-grid {
    grid-template-columns: 1fr;
  }
}

.solar-finance-calculator h3,
.solar-finance-calculator h4 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.solar-finance-intro,
.solar-finance-intro-small {
  color: #555;
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.solar-finance-calculator input[type="range"] {
  width: 100%;
  margin: 8px 0 12px;
  accent-color: #d1b02b;
}

.solar-finance-value {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.solar-finance-value .finance-currency {
  font-weight: 700;
  color: #222;
  min-width: 1.5em;
}

.solar-finance-value input[type="text"] {
  flex: 1;
  max-width: 200px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.finance-deposit-preview,
.solar-finance-note {
  margin: 12px 0;
  font-size: 0.95rem;
}

.finance-summary {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.finance-summary-card {
  flex: 1 1 140px;
  padding: 16px;
  background: #f7f7f7;
  border-radius: 6px;
  border: 1px solid #eee;
}

.finance-summary-card span {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 4px;
}

.finance-summary-card strong {
  font-size: 1.25rem;
  color: #111;
}

.finance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.finance-table th,
.finance-table td {
  padding: 12px 14px;
  border: 1px solid #e5e5e5;
  text-align: left;
}

.finance-table th {
  background: #fafafa;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.finance-term strong {
  display: block;
}

.finance-term span {
  font-size: 0.85rem;
  color: #666;
}

.finance-payment strong {
  color: #111;
  font-size: 1.1rem;
}

/* Sidebar / CTA panels */
.solar-rental-cta-content,
.quote-sidebar-cta {
  padding: 8px 0;
}

.solar-rental-cta-step,
.solar-rental-step {
  margin-bottom: 20px;
}

.solar-rental-cta-step strong,
.solar-rental-step h3 {
  display: block;
  margin-bottom: 6px;
}

.solar-rental-contact-card {
  margin-top: 24px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 6px;
  border: 1px solid #eee;
}

.quote-sidebar-cta {
  padding: 24px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}

.quote-sidebar-btn {
  display: inline-block;
  margin: 16px 0;
  padding: 12px 24px;
  background: #d1b02b;
  color: #111 !important;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}

.quote-sidebar-btn:hover {
  background: #b89824;
}

.quote-sidebar-help {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* Two-column quote / contact layouts */
.elementor-section .elementor-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
}

.elementor-section .elementor-column.elementor-col-50 {
  width: 50%;
  max-width: 50%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .elementor-section .elementor-column.elementor-col-50 {
    width: 100%;
    max-width: 100%;
  }
}

.elementor-element-566ac1a .elementor-widget-wrap {
  padding: 8px 8px 24px;
}

.elementor-element-566ac1a .quote-sidebar-btn {
  margin-top: 8px;
}

/* Location page benefit icons + photo strip */
.elementor-element-1e2248f .e-con-inner {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 28px;
  padding: 24px 5%;
}

.elementor-element-f270677 .e-con-inner {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 8px 5% 40px;
}

.elementor-element-f270677 img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .elementor-element-1e2248f .e-con-inner,
  .elementor-element-f270677 .e-con-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .elementor-element-f270677 img {
    height: 140px;
  }
}

/* Areas we serve */
.locations-served {
  padding: 8px 0 24px;
}

.locations-served h2 {
  margin: 0 0 16px;
}

.locations-served .locations-grid,
.locations-served-4col .locations-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 32px;
}

.locations-served .location-item {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid #ececec;
  line-height: 1.4;
}

.locations-served .location-item:hover {
  color: #b89824;
}

.locations-served .location-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #c9a227;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .locations-served .locations-grid,
  .locations-served-4col .locations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.site-footer {
  clear: both;
  width: 100%;
}

/* Contact form */
.densys-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.densys-contact-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.densys-contact-field input,
.densys-contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cfcfcf;
  background: #fff;
  font-size: 15px;
  line-height: 1.4;
  color: #111;
  font-family: inherit;
}

.densys-contact-field input:focus,
.densys-contact-field textarea:focus {
  outline: 2px solid #d1b02b;
  outline-offset: 1px;
  border-color: #d1b02b;
}

.densys-contact-field textarea {
  min-height: 140px;
  resize: vertical;
}

.densys-contact-submit {
  align-self: flex-start;
  margin-top: 4px;
  padding: 12px 28px;
  border: 0;
  background: #d1b02b;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.densys-contact-submit:hover,
.densys-contact-submit:focus {
  background: #b89824;
}

.densys-contact-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.densys-contact-note {
  margin-top: 24px;
  font-size: 13px;
  color: #777;
  font-style: italic;
  text-align: center;
}

.elementor-element-b3893c5 {
  display: none !important;
}

.elementor-element-7fbbc62 {
  width: 100% !important;
  max-width: 760px;
}

.densys-quote-form {
  max-width: 720px;
}

.densys-quote-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .densys-quote-row {
    grid-template-columns: 1fr;
  }
}

.densys-quote-fieldset {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
}

.densys-quote-fieldset legend {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.densys-quote-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 400;
  color: #222;
}

.densys-quote-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 4px;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
}

/* Single visible checkbox/radio: keep a real box, kill theme ::before/::after marks */
.densys-contact-form input[type="checkbox"],
.densys-contact-form input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 1.15em;
  height: 1.15em;
  min-width: 1.15em;
  margin: 0.2em 0 0;
  flex-shrink: 0;
  box-sizing: border-box;
  background-color: #fff;
  border: 2px solid #333;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  position: relative;
  vertical-align: text-bottom;
  accent-color: #d1b02b;
}

.densys-contact-form input[type="radio"] {
  border-radius: 50%;
}

.densys-contact-form input[type="checkbox"]::before,
.densys-contact-form input[type="checkbox"]::after,
.densys-contact-form input[type="radio"]::before,
.densys-contact-form input[type="radio"]::after {
  content: none !important;
  display: none !important;
}

.densys-contact-form input[type="checkbox"]:checked {
  background-color: #d1b02b;
  border-color: #d1b02b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-size: 0.85em 0.85em;
  background-position: center;
  background-repeat: no-repeat;
}

.densys-contact-form input[type="radio"]:checked {
  background-color: #fff;
  border-color: #d1b02b;
  background-image: radial-gradient(circle, #d1b02b 0 38%, transparent 40%);
}

.densys-quote-panel[hidden] {
  display: none !important;
}
