/* ================================================================
   FLATSOME THEME OVERRIDES
   Reset Flatsome defaults that conflict with ESGreen design
================================================================ */

/* Remove default Flatsome row padding — set per-section in esgreen-sections.css */
.row { padding-top: 0 !important; padding-bottom: 0 !important; }

/* Override Flatsome primary button to match ESGreen brand */
.ux-button,
.button,
input[type="submit"],
button[type="submit"] {
  background: var(--brand) !important;
  border-radius: 24px !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(109, 192, 67, 0.3) !important;
}
.ux-button:hover,
.button:hover {
  background: var(--mid-green) !important;
}

/* Disable Flatsome sticky header — ESGreen uses its own */
.is-sticky-column,
#header.stuck,
.header-wrapper.stuck {
  position: relative !important;
  top: auto !important;
}

/* Override Flatsome body font with ESGreen Nunito Sans */
body,
.header-wrapper,
.footer-wrapper {
  font-family: var(--font-body) !important;
}

/* Reset Flatsome link colors */
a { color: var(--brand); }
a:hover { color: var(--mid-green); }

/* Override Flatsome heading colors */
h1, h2, h3, h4, h5, h6 {
  color: var(--forest);
}

/* Polylang language switcher style to match header pill */
.polylang-switcher,
.polylang-switcher a,
.pll-parent-menu-item a {
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 16px !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
  transition: all 0.3s !important;
  text-decoration: none !important;
}
.polylang-switcher a:hover,
.pll-parent-menu-item a:hover {
  border-color: var(--brand) !important;
  color: var(--brand) !important;
}

/* Remove Flatsome's default overlay on hero rows */
.section-overlay { display: none !important; }

/* Ensure UX Builder full-width rows work */
.full-width { max-width: 100% !important; width: 100% !important; }

/* Fix Flatsome adding extra margin to images */
img { max-width: 100%; height: auto; }
